mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
4a42961393
This commit adds the ability to return `RedirectCommand` from the error handler provided by `withNavigationErrorHandler`. This will prevent the error from being surfaced in the `events` observable of the Router and instead convert the error to a redirect. This allows developers to have more control over how the Router handles navigation errors. There are some cases when the application _does not_ want the URL to be reset when an error occurs. resolves #42915 PR Close #55370