Fix location ref
This commit is contained in:
parent
1749ce5d08
commit
ab0539b951
1 changed files with 2 additions and 1 deletions
|
@ -518,8 +518,9 @@ async function generatePath(
|
||||||
switch(response.status) {
|
switch(response.status) {
|
||||||
case 301:
|
case 301:
|
||||||
case 302: {
|
case 302: {
|
||||||
|
const location = getRedirectLocationOrThrow(response.headers);
|
||||||
body = `<!doctype html><meta http-equiv="refresh" content="0;url=${location}" />`;
|
body = `<!doctype html><meta http-equiv="refresh" content="0;url=${location}" />`;
|
||||||
pageData.route.redirect = getRedirectLocationOrThrow(response.headers)
|
pageData.route.redirect = location;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue