This commit is contained in:
_Bastler 2021-09-23 11:04:12 +02:00
parent dd3eda2fd3
commit 3175ce0ef9

View File

@ -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) => {