Andrew Scott
8a56c99f87
docs(router): Update router guide to use UrlTree for guard redirects ( #37100 )
...
The current implementation for redirecting users inside guards was in place
before the feature was added to allow `CanActivate` and `CanActivateChild` guards
to return `UrlTree` for redirecting users.
Returning `UrlTree` should be the default method, as it provides a more desirable
redirecting experience. When using `router.navigate` followed by `return false`,
the `Router` calls `resetUrlToCurrentUrlTree` (in the `finalize` operator) before
processing the navigation to the new route. This can result in an undesirable
history if the navigation was the first navigation in the application - that is,
the route will briefly be reset to just `/` (see #36187 ).
Fixes #36187
PR Close #37100
2020-05-14 12:23:35 -07:00
..
2020-03-18 10:00:01 -07:00
2019-05-20 16:42:59 -07:00
2020-02-04 15:57:37 -08:00
2020-01-22 13:45:23 -08:00
2020-04-06 15:31:07 -07:00
2020-01-22 13:45:23 -08:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2020-01-21 13:12:18 -05:00
2020-01-21 13:14:46 -05:00
2020-04-06 15:31:07 -07:00
2020-01-22 13:45:23 -08:00
2020-04-06 15:31:07 -07:00
2020-02-07 09:58:31 -08:00
2020-01-22 13:45:23 -08:00
2020-01-22 13:45:23 -08:00
2020-01-22 13:45:23 -08:00
2020-01-22 13:45:23 -08:00
2020-03-18 10:00:01 -07:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2020-01-22 13:45:23 -08:00
2020-01-22 13:45:23 -08:00
2020-04-06 15:31:07 -07:00
2020-03-13 08:25:39 -07:00
2020-03-13 08:25:39 -07:00
2020-01-22 13:45:23 -08:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2020-05-06 15:06:10 -07:00
2019-11-25 11:37:39 -05:00
2020-05-06 15:01:34 -07:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2019-05-15 14:24:20 -07:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2020-03-18 10:00:01 -07:00
2020-04-06 15:31:07 -07:00
2020-03-18 10:00:01 -07:00
2020-05-14 12:23:35 -07:00
2020-05-05 11:51:19 -07:00
2020-04-06 15:31:07 -07:00
2020-03-18 10:00:01 -07:00
2020-01-22 13:45:23 -08:00
2020-04-06 15:31:07 -07:00
2020-03-18 10:00:01 -07:00
2020-04-06 15:31:07 -07:00
2020-01-22 13:45:23 -08:00
2020-02-07 09:58:31 -08:00
2020-04-06 15:31:07 -07:00
2020-04-06 15:31:07 -07:00
2019-10-17 16:10:10 -04:00
2020-04-06 15:31:07 -07:00
2020-04-16 09:43:41 -07:00
2020-04-16 09:43:41 -07:00
2020-04-16 09:43:41 -07:00
2020-04-16 09:43:41 -07:00
2020-04-16 09:43:41 -07:00
2020-04-16 09:43:41 -07:00
2020-04-16 09:43:41 -07:00
2020-04-06 15:31:07 -07:00
2020-04-16 09:43:42 -07:00
2020-03-18 10:00:01 -07:00
2019-03-11 10:52:17 -07:00
2020-04-06 15:31:07 -07:00
2020-05-13 16:02:29 -07:00
2020-04-06 15:31:07 -07:00
2019-10-02 13:25:39 -07:00
2020-04-16 09:43:41 -07:00
2017-04-15 22:15:54 +01:00
2019-05-07 10:25:36 -07:00