mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
parent
d08dfc8e18
commit
29aa7bc04d
1 changed files with 6 additions and 1 deletions
|
@ -148,7 +148,12 @@ export const KibanaLink = withLocation(KibanaLinkComponent);
|
|||
// 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(url) {
|
||||
return url && encodeURIComponent(url).replace(/%/g, '~');
|
||||
return (
|
||||
url &&
|
||||
encodeURIComponent(url)
|
||||
.replace(/~/g, '%7E')
|
||||
.replace(/%/g, '~')
|
||||
);
|
||||
}
|
||||
|
||||
export function legacyDecodeURIComponent(url) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue