This commit is contained in:
_Bastler 2021-09-23 11:26:55 +02:00
parent 3175ce0ef9
commit 53ac145165
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ export class FormLoginComponent implements OnInit {
ngAfterViewInit(): void {
if (this.targetRoute) {
this.loginForm.nativeElement.action = this.loginForm.nativeElement.action + "?forward=" + window.location.origin + this.targetRoute;
this.loginForm.nativeElement.action = this.loginForm.nativeElement.action + "?forward=" + window.location.origin + encodeURIComponent(this.targetRoute);
}
}

View File

@ -68,7 +68,7 @@ export class UrlShortenerComponent implements OnInit {
this.route.queryParams.subscribe(params => {
if (params.url) {
this.shortenedUrl.url = params.url;
this.shortenedUrl.url = decodeURIComponent(params.url);
}
})