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
{{ message }}
Repository navigation
Commit a4ebd6f
Browse filesBrowse the repository at this point in the historyBrowse files
fix(router): accept a redirect function in RedirectRouteMeta
`RedirectRouteMeta.redirectTo` was typed `string`, so a `RouteMeta`
could not hold the `RedirectFunction` that Angular's `Route` accepts
and that `toRouteConfig` passes through unchanged. It now takes
Angular's `Route['redirectTo']` without `undefined`, and the typed
route helpers exclude redirect metas by the same shape.
The runtime checks that decide whether a page is a redirect test for a
nullish `redirectTo` instead of a falsy one, so `toRouteConfig`, the
route builder's dev warning and the route diagnostics share one rule.
0 commit comments