Skip to content

fix(@angular/ssr): replace all route parameters when resolving relative redirects#33606

Closed
alan-agius4 wants to merge 1 commit into
angular:21.2.xfrom
alan-agius4:fix-33603-21.2.x
Closed

fix(@angular/ssr): replace all route parameters when resolving relative redirects#33606
alan-agius4 wants to merge 1 commit into
angular:21.2.xfrom
alan-agius4:fix-33603-21.2.x

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

Fixes #33603. Backport of 0bd22da to the 21.2.x branch.

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Jul 20, 2026
@alan-agius4 alan-agius4 linked an issue Jul 20, 2026 that may be closed by this pull request
@alan-agius4
alan-agius4 requested a review from clydin July 20, 2026 07:30
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 20, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the route redirection resolution in Angular SSR to support multiple path parameters by replacing URL_PARAMETER_REGEXP with URL_PARAMETER_GLOBAL_REGEXP when resolving relative redirects. It also adds a corresponding unit test to verify that nested redirects with multiple path parameters are extracted correctly. I have no feedback to provide as there are no review comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/ssr target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Routing: redirectTo does not propagate all params in route

1 participant