Fix building explore url with % character

This commit is contained in:
Alexander Zobnin
2020-05-20 11:16:57 +03:00
parent 2cf9b5abd9
commit cf578b7249

View File

@@ -44,6 +44,7 @@ export function renderUrl(path: string, query: UrlQueryMap | undefined): string
function encodeURIComponentAsAngularJS(val: string, pctEncodeSpaces?: boolean) {
return encodeURIComponent(val)
.replace(/%25/gi, '%2525')
.replace(/%40/gi, '@')
.replace(/%3A/gi, ':')
.replace(/%24/g, '$')