You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fairly straightforward issue, replace removes items from the stack before checking whether it will be allowed to push the new route.
Unfortunately, it does not test any route guards owned by the new route, before removing any routes.
The result is if the route passed to 'replace', has a guard that will block the navigation, then half the navigation is completed (the removal parts), leaving you in an unexpected stated.
We are using route guards to prevent the user from accessing areas of the application given certain conditions.
When they are navigated deeply within the application, clicking on a button to navigate them somewhere they are not allowed, will jump them "halfway" - the expected behavior is that none of their navigation request is performed.
The text was updated successfully, but these errors were encountered:
Fairly straightforward issue,
replace
removes items from the stack before checking whether it will be allowed to push the new route.Unfortunately, it does not test any route guards owned by the new route, before removing any routes.
The result is if the route passed to 'replace', has a guard that will block the navigation, then half the navigation is completed (the removal parts), leaving you in an unexpected stated.
We are using route guards to prevent the user from accessing areas of the application given certain conditions.
When they are navigated deeply within the application, clicking on a button to navigate them somewhere they are not allowed, will jump them "halfway" - the expected behavior is that none of their navigation request is performed.
The text was updated successfully, but these errors were encountered: