mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 11:15:14 +00:00
Merge pull request #409 from sveltejs/fix-redirects
don't include origin in export redirects
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user