From 02cdc801fcce7309569fa3d4ddd762615215ed12 Mon Sep 17 00:00:00 2001 From: Karan Takalkar Date: Mon, 1 Jun 2020 22:53:13 +0530 Subject: [PATCH] fix: URL to String pipe to decode URLs (#837) Fixes: #836 --- src/app/pipes/url-to-string.pipe.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/pipes/url-to-string.pipe.ts b/src/app/pipes/url-to-string.pipe.ts index f955dd54e..a6b2b1678 100644 --- a/src/app/pipes/url-to-string.pipe.ts +++ b/src/app/pipes/url-to-string.pipe.ts @@ -11,6 +11,7 @@ import { Pipe, PipeTransform } from '@angular/core'; export class UrlToStringPipe implements PipeTransform { transform(url: string): any { + url = decodeURIComponent(url); const urlSubstrings: string[] = url.slice(1).split('/'); const stringRepresentation = urlSubstrings