How i can get name of current route? Not URL part, but route name or alias.
I want to do redirect inside CanActivate
hook. If this hook return false
, while i stayed on root route ('/')
, i need to reload page, because standart Route.navigate
on same URL did not reload page.
Also i looked for similar questions on StackOverflow, but did not find any solution. All few solution based on Location url parsing, but this not what i want.