fix: URL to String pipe to decode URLs (#837)

Fixes: #836
This commit is contained in:
Karan Takalkar
2020-06-01 22:53:13 +05:30
committed by GitHub
parent 14516d2ac2
commit 02cdc801fc
+1
View File
@@ -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