I have an AccessGuard class in my project which its work is to determine if user can access to the route or not. I used the router.url to get the current route
router.url
You need to use the method parameters to see the target route:
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) { console.log(state.url);//'candidates' } canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot)