mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-21 14:55:04 +00:00
oops that wasnt quite right
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.replace(root.href, '')}"</script>`;
|
body = `<script>window.location.href = "${location.replace(origin, '')}"</script>`;
|
||||||
|
|
||||||
await handle(resolve(root.href, location));
|
await handle(resolve(root.href, location));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user