From 53ac145165d69ae20f75ada2d38c981360f07a91 Mon Sep 17 00:00:00 2001 From: _Bastler <_Bastler@bstly.de> Date: Thu, 23 Sep 2021 11:26:55 +0200 Subject: [PATCH] fix link --- src/app/pages/form-login/form-login.component.ts | 2 +- src/app/pages/urlshortener/urlshortener.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pages/form-login/form-login.component.ts b/src/app/pages/form-login/form-login.component.ts index 780da65..42a5b2c 100644 --- a/src/app/pages/form-login/form-login.component.ts +++ b/src/app/pages/form-login/form-login.component.ts @@ -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); } } diff --git a/src/app/pages/urlshortener/urlshortener.component.ts b/src/app/pages/urlshortener/urlshortener.component.ts index 7825a35..b8aa04d 100644 --- a/src/app/pages/urlshortener/urlshortener.component.ts +++ b/src/app/pages/urlshortener/urlshortener.component.ts @@ -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); } })