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.
new URL
1 parent 53b6cd3 commit 8098c81Copy full SHA for 8098c81
packages/angular/ssr/src/app.ts
@@ -158,7 +158,7 @@ export class AngularServerApp {
158
// 302 Found is used by default for redirections
159
// See: https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static#status
160
// eslint-disable-next-line @typescript-eslint/no-explicit-any
161
- return Response.redirect(new URL(redirectTo, new URL(request.url)), (status as any) ?? 302);
+ return Response.redirect(new URL(redirectTo, url), (status as any) ?? 302);
162
}
163
164
if (renderMode === RenderMode.Prerender) {
0 commit comments