Skip to content

fix(router): skipLocationChange with named outlets - #28300

Closed
jasonaden wants to merge 2 commits into
angular:masterfrom
jasonaden:FW-980_fix_named_outlet
Closed

jasonaden wants to merge 2 commits into
angular:masterfrom
jasonaden:FW-980_fix_named_outlet

Conversation

@jasonaden

@jasonaden jasonaden commented Jan 22, 2019 •

Copy link
Copy Markdown
Contributor

With #27680, a bug was fixed where multiple redirects using eager URL update could cause navigation to fail. However, that fix introduced a problem where with skipLocationChange enabled, the URL tree rendered was not properly stored for reference. This specifically caused an issue with named router outlets and subsequent navigations not being recognized.

This PR stores the correct UrlTree for reference with later navigations. It fixes the regression introdued with #27680.

Fixes #28200

…ect with UrlUpdateStrategy="eager" (angular#27523)"

This reverts commit eea2b0f.
With angular#27680, a bug was fixed where multiple redirects using `eager` URL update could cause navigation to fail. However, that fix introduced a problem where with `skipLocationChange` enabled, the URL tree rendered was not properly stored for reference. This specifically caused an issue with named router outlets and subsequent navigations not being recognized.

This PR stores the correct `UrlTree` for reference with later navigations. It fixes the regression introdued with angular#27680.

Fixes angular#28200
@jasonaden
jasonaden requested a review from a team January 22, 2019 22:10
@jasonaden jasonaden changed the title Fw 980 fix named outlet fix(router): skipLocationChange with named outlets Jan 22, 2019
@jasonaden jasonaden added action: merge The PR is ready for merge by the caretaker area: router target: major This PR is targeted for the next major release labels Jan 22, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Jan 22, 2019
@jasonaden

Copy link
Copy Markdown
Contributor Author

Presubmit

@alxhub alxhub closed this in 33e49c2 Jan 22, 2019
alxhub pushed a commit that referenced this pull request Jan 22, 2019
With #27680, a bug was fixed where multiple redirects using `eager` URL update could cause navigation to fail. However, that fix introduced a problem where with `skipLocationChange` enabled, the URL tree rendered was not properly stored for reference. This specifically caused an issue with named router outlets and subsequent navigations not being recognized.

This PR stores the correct `UrlTree` for reference with later navigations. It fixes the regression introdued with #27680.

Fixes #28200

PR Close #28300
vetom pushed a commit to vetom/angular that referenced this pull request Jan 31, 2019
vetom pushed a commit to vetom/angular that referenced this pull request Jan 31, 2019
With angular#27680, a bug was fixed where multiple redirects using `eager` URL update could cause navigation to fail. However, that fix introduced a problem where with `skipLocationChange` enabled, the URL tree rendered was not properly stored for reference. This specifically caused an issue with named router outlets and subsequent navigations not being recognized.

This PR stores the correct `UrlTree` for reference with later navigations. It fixes the regression introdued with angular#27680.

Fixes angular#28200

PR Close angular#28300
@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 Sep 14, 2019
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 cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After upgrading router to 7.2.1 navigation doesn't work with named router outlets and skipLocationChange

3 participants