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

Commit

Permalink
dont include origin in export redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Sep 2, 2018
1 parent 57a26e3 commit a18af2a
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 a18af2a

Please sign in to comment.