mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-18 05:25:08 +00:00
Merge branch 'master' of github.com:sveltejs/sapper
This commit is contained in:
@@ -170,7 +170,7 @@ async function execute(emitter: EventEmitter, opts: Opts) {
|
|||||||
const location = r.headers.get('Location');
|
const location = r.headers.get('Location');
|
||||||
|
|
||||||
type = 'text/html';
|
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));
|
await handle(resolve(root.href, location));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user