Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #409 from sveltejs/fix-redirects
Browse files Browse the repository at this point in the history
don't include origin in export redirects
  • Loading branch information
Rich-Harris committed Sep 2, 2018
2 parents fe5a8fb + a18af2a commit f9f2836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async function execute(emitter: EventEmitter, opts: Opts) {
const location = r.headers.get('Location');

type = 'text/html';
body = `<script>window.location.href = "${location}"</script>`;
body = `<script>window.location.href = "${location.replace(root.href, '')}"</script>`;

await handle(resolve(root.href, location));
}
Expand Down

0 comments on commit f9f2836

Please sign in to comment.