| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…te commit When an error occurs after `BeforeActivateRoutes` has already committed `targetRouterState` and `withNavigationErrorHandler` returns a `RedirectCommand`, the transition emits a redirecting `NavigationCancel` instead of `NavigationError`. Previously, `StateManager` skipped resetting internal state on all redirecting cancellations because redirects from guards and resolvers happen prior to `BeforeActivateRoutes`. This left the uncommitted or half-activated `targetRouterState` (whose unactivated routes do not yet have `snapshot` assigned) as the current `routerState` for the subsequent redirect navigation. This change resets internal state if a redirecting cancellation occurs after `targetRouterState` was already committed. Fixes angular#71126
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Sorry, something went wrong.
|
This PR was merged into the repository. The changes were merged into the following branches: |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When an error occurs after BeforeActivateRoutes has already committed targetRouterState and withNavigationErrorHandler returns a RedirectCommand, the transition emits a redirecting NavigationCancel instead of NavigationError. Previously, StateManager skipped resetting internal state on all redirecting cancellations because redirects from guards and resolvers happen prior to BeforeActivateRoutes. This left the half-activated targetRouterState (whose unactivated routes do not yet have snapshot assigned) as the current routerState for the subsequent redirect navigation.
This change resets internal state if a redirecting cancellation occurs after targetRouterState was already committed.
Fixes #71126