Skip to content

fix(router-extensions): unable to go back with relativeTo param #1632

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

Merged
merged 4 commits into from
Nov 26, 2018

Conversation

ADjenkov
Copy link
Contributor

routerExtensions.back({ relativeTo: activatedRoute.parent }) won't navigate back when used from nested named lazy loaded outlet, since the parent route is the outer named outlet (that has no navigation states). We should treat its parent route as the activatedRoute.parent one.

@ADjenkov ADjenkov added the bug label Nov 23, 2018
@ADjenkov ADjenkov self-assigned this Nov 23, 2018
@ghost ghost added the in progress label Nov 23, 2018
@ghost ghost assigned SvetoslavTsenov Nov 23, 2018
@ADjenkov ADjenkov merged commit bb0b48d into master Nov 26, 2018
@ghost ghost removed bug in progress labels Nov 26, 2018
@ADjenkov ADjenkov deleted the djenkov/router-extensions-back branch November 26, 2018 11:46
SvetoslavTsenov pushed a commit that referenced this pull request Nov 26, 2018
* fix(router-extensions): unable to go back with relativeTo param

* refactor(outlet): introduce isNSEmptyOutlet property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants