fix link
This commit is contained in:
parent
3175ce0ef9
commit
53ac145165
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user