We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 314da70 commit 767ab97Copy full SHA for 767ab97
edge-runtime/lib/response.ts
@@ -210,7 +210,7 @@ export const buildResponse = async ({
210
logger.withFields({ redirect_url: redirect }).debug('Redirect url is same as original url')
211
return
212
}
213
- edgeResponse.headers.set('location', redirect)
+ edgeResponse.headers.set('location', relativizeURL(redirect, request.url))
214
215
216
// Data requests shouldn't automatically redirect in the browser (they might be HTML pages): they're handled by the router
0 commit comments