mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Conflicts: # x-pack/plugins/apm/public/components/shared/Links/url_helpers.test.tsx # x-pack/plugins/apm/public/components/shared/Links/url_helpers.ts
This commit is contained in:
parent
67e218022f
commit
ee75231ec6
1 changed files with 6 additions and 1 deletions
|
@ -227,7 +227,12 @@ export const KibanaLink = withLocation(UnconnectedKibanaLink);
|
|||
// Angular decodes encoded url tokens like "%2F" to "/" which causes the route to change.
|
||||
// It was supposedly fixed in https://github.com/angular/angular.js/commit/1b779028fdd339febaa1fff5f3bd4cfcda46cc09 but still seeing the issue
|
||||
export function legacyEncodeURIComponent(rawUrl?: string) {
|
||||
return rawUrl && encodeURIComponent(rawUrl).replace(/%/g, '~');
|
||||
return (
|
||||
rawUrl &&
|
||||
encodeURIComponent(rawUrl)
|
||||
.replace(/~/g, '%7E')
|
||||
.replace(/%/g, '~')
|
||||
);
|
||||
}
|
||||
|
||||
export function legacyDecodeURIComponent(encodedUrl?: string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue