mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-11 19:04:30 +00:00
@@ -177,7 +177,7 @@ export function get_page_handler(
|
||||
|
||||
try {
|
||||
if (redirect) {
|
||||
const location = URL.resolve(req.baseUrl || '/', redirect.location);
|
||||
const location = URL.resolve((req.baseUrl || '') + '/', redirect.location);
|
||||
|
||||
res.statusCode = redirect.statusCode;
|
||||
res.setHeader('Location', location);
|
||||
|
||||
Reference in New Issue
Block a user