canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) { console.log(state.url);//'candidates' }