We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
new URL
1 parent a325c9a commit 073e81eCopy full SHA for 073e81e
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