Skip to content

fix(router): handle parenthesized outlets without a name in DefaultUr…#64507

Closed
atscott wants to merge 1 commit intoangular:mainfrom
atscott:otheroutletbug
Closed

fix(router): handle parenthesized outlets without a name in DefaultUr…#64507
atscott wants to merge 1 commit intoangular:mainfrom
atscott:otheroutletbug

Conversation

@atscott
Copy link
Copy Markdown
Contributor

@atscott atscott commented Oct 17, 2025

…lSerializer

Previously, the DefaultUrlSerializer would incorrectly parse URLs with a parenthesized outlet that did not have a name, such as /(left). This would result in an undefined outlet name in the serialized URL.

This commit fixes the issue by ensuring that parenthesized outlets without a name are treated as primary outlets.

fixes #58516. Based on the description, either the URL was constructed manually or by custom serializer.

@atscott atscott added target: patch This PR is targeted for the next patch release requires: TGP This PR requires a passing TGP before merging is allowed labels Oct 17, 2025
@ngbot ngbot bot added this to the Backlog milestone Oct 17, 2025
@pullapprove pullapprove bot removed the requires: TGP This PR requires a passing TGP before merging is allowed label Oct 17, 2025
@atscott
Copy link
Copy Markdown
Contributor Author

atscott commented Oct 20, 2025

…lSerializer

Previously, the `DefaultUrlSerializer` would incorrectly parse URLs with a parenthesized outlet that did not have a name, such as `/(left)`. This would result in an `undefined` outlet name in the serialized URL.

This commit fixes the issue by ensuring that parenthesized outlets without a name are treated as primary outlets.

fixes angular#58516. Based on the description, either the URL was constructed
manually or by custom serializer.
@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Oct 22, 2025
@crisbeto
Copy link
Copy Markdown
Member

This PR was merged into the repository. The changes were merged into the following branches:

@crisbeto crisbeto closed this in d4d6c28 Oct 23, 2025
crisbeto pushed a commit that referenced this pull request Oct 23, 2025
…lSerializer (#64507)

Previously, the `DefaultUrlSerializer` would incorrectly parse URLs with a parenthesized outlet that did not have a name, such as `/(left)`. This would result in an `undefined` outlet name in the serialized URL.

This commit fixes the issue by ensuring that parenthesized outlets without a name are treated as primary outlets.

fixes #58516. Based on the description, either the URL was constructed
manually or by custom serializer.

PR Close #64507
crisbeto pushed a commit that referenced this pull request Oct 23, 2025
…lSerializer (#64507)

Previously, the `DefaultUrlSerializer` would incorrectly parse URLs with a parenthesized outlet that did not have a name, such as `/(left)`. This would result in an `undefined` outlet name in the serialized URL.

This commit fixes the issue by ensuring that parenthesized outlets without a name are treated as primary outlets.

fixes #58516. Based on the description, either the URL was constructed
manually or by custom serializer.

PR Close #64507
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: router target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid check in router/url_tree/parseParens

3 participants