fix link
This commit is contained in:
@@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user