Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular/ssr): prioritize the first matching route over subsequent ones #29543

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

alan-agius4
Copy link
Collaborator

Ensures that the SSR router gives precedence to the first matching route, addressing the issue where later conflicting routes.

This change prevents the incorrect prioritization of routes and ensures the intended route is matched first, aligning routing behavior.

Closes: #29539

…t ones

Ensures that the SSR router gives precedence to the first matching route, addressing the issue where later conflicting routes.

This change prevents the incorrect prioritization of routes and ensures the intended route is matched first, aligning routing behavior.

Closes: angular#29539
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jan 30, 2025
@alan-agius4 alan-agius4 requested a review from dgp1130 January 31, 2025 07:48
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 31, 2025
@jkrems jkrems merged commit 6448f80 into angular:main Feb 3, 2025
34 checks passed
@jkrems
Copy link
Contributor

jkrems commented Feb 3, 2025

The changes were merged into the following branches: main, 19.1.x

@alfaproject
Copy link

Should we log a warning if there are multiple routes matched, maybe under a flag?

@alan-agius4 alan-agius4 deleted the first-match-route branch February 3, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker 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.

AngularNodeAppEngine has different unknown path routing behavior than CommonEngine
4 participants