redirect
This commit is contained in:
parent
dd3eda2fd3
commit
3175ce0ef9
@ -44,7 +44,7 @@ export class AuthenticatedGuard implements CanActivate {
|
||||
const that = this;
|
||||
return this.authService.getAuth().then((data: any) => {
|
||||
if (!data.authenticated) {
|
||||
return that.router.navigateByUrl(that.router.parseUrl('/login?target=' + state.url), { skipLocationChange: true, replaceUrl: true });
|
||||
return that.router.navigateByUrl(that.router.parseUrl('/login?target=' + encodeURIComponent(state.url)), { skipLocationChange: true, replaceUrl: true });
|
||||
}
|
||||
|
||||
this.profileService.get([ "locale", "darkTheme" ]).subscribe((profileFields: any) => {
|
||||
|
Loading…
Reference in New Issue
Block a user