|
@ -6,6 +6,5 @@ export function encodeUrl(url: string | undefined): string | undefined { |
|
|
if (url == null) return undefined; |
|
|
if (url == null) return undefined; |
|
|
|
|
|
|
|
|
// Not a fan of this, but it's hard to gauge previous encoding and this is the most common case
|
|
|
// Not a fan of this, but it's hard to gauge previous encoding and this is the most common case
|
|
|
url = url.replace(/%20/g, ' '); |
|
|
|
|
|
return encodeURI(url).replace(/#/g, '%23'); |
|
|
|
|
|
|
|
|
return encodeURI(url.replace(/%20/g, ' ')); |
|
|
} |
|
|
} |