Explore button: fix item name building

This commit is contained in:
Alexander Zobnin
2020-05-20 11:21:59 +03:00
parent cf578b7249
commit 3aaf58b05a
3 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +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(/%25/gi, '%2525') // Double-encode % symbol to make it properly decoded in Explore
.replace(/%40/gi, '@')
.replace(/%3A/gi, ':')
.replace(/%24/g, '$')