Ajout de param sur le redirect vers la page

de login
This commit is contained in:
Sébastien André
2020-03-27 10:16:32 +01:00
parent 9d0c5fbfb1
commit 40e894acba
2 changed files with 5 additions and 2 deletions

View File

@@ -25,7 +25,10 @@ export class AuthGuardService implements CanActivate {
}
// not logged in so redirect to login page with the return url
this.router.navigate(["/login"], { queryParams: { returnUrl: state.url } });
this.router.navigate(["/login"], {
skipLocationChange: true,
queryParams: { returnUrl: state.url }
});
return false;
}
}