Angular 2 RouterStateSnapshot not returning correct url
问题 I'm trying to get the redirect after login working based on the documentation from angular. https://angular.io/docs/ts/latest/guide/router.html#!#teach-authguard-to-authenticate I got basically the same setup albeit that some filenames are different. The problem is that when i log the RouterStateSnapshot url in the authGuard, it wil always output the first route from app-routing.module.ts ('/countries') instead of e.g. /countries/france/34 authGuard canActivate(route: ActivatedRouteSnapshot,