dont include origin in export redirects

This commit is contained in:
Rich Harris
2018-09-02 17:01:29 -04:00
parent 57a26e3511
commit a18af2a473

View File

@@ -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));
}