Skip to content

Commit

Permalink
refactor(@angular/ssr): remove redundant new URL
Browse files Browse the repository at this point in the history
Re-use existing const
  • Loading branch information
alan-agius4 committed Nov 8, 2024
1 parent a325c9a commit 073e81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/ssr/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class AngularServerApp {
// 302 Found is used by default for redirections
// See: https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static#status
// eslint-disable-next-line @typescript-eslint/no-explicit-any
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);
}

if (renderMode === RenderMode.Prerender) {
Expand Down

0 comments on commit 073e81e

Please sign in to comment.