Fix location ref

This commit is contained in:
Matthew Phillips 2023-05-19 15:18:44 -04:00
parent 1749ce5d08
commit ab0539b951

View file

@ -518,8 +518,9 @@ async function generatePath(
switch(response.status) {
case 301:
case 302: {
const location = getRedirectLocationOrThrow(response.headers);
body = `<!doctype html><meta http-equiv="refresh" content="0;url=${location}" />`;
pageData.route.redirect = getRedirectLocationOrThrow(response.headers)
pageData.route.redirect = location;
break;
}
default: {