Skip to content

Commit 232bea8

Browse files
committed
PR updates
1 parent 27e981f commit 232bea8

File tree

3 files changed

+1
-45
lines changed

3 files changed

+1
-45
lines changed

x-pack/legacy/plugins/monitoring/public/lib/get_safe_for_external_link.ts

+1-11
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import chrome from '../np_imports/ui/chrome';
8-
97
export function getSafeForExternalLink(url: string) {
10-
const $injector = chrome.dangerouslyGetActiveInjector() as any;
11-
const globalState = $injector.get('globalState');
12-
if (url.startsWith('#/') && globalState.cluster_uuid) {
13-
const clusterUuid = globalState.ccs
14-
? `${globalState.ccs}:${globalState.cluster_uuid}`
15-
: globalState.cluster_uuid;
16-
return `#/_cluster/${clusterUuid}/${url.substr(2)}`;
17-
}
18-
return url;
8+
return `${url.split('?')[0]}?${location.hash.split('?')[1]}`;
199
}

x-pack/legacy/plugins/monitoring/public/views/all.js

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import './alerts';
1111
import './license';
1212
import './cluster/listing';
1313
import './cluster/overview';
14-
import './cluster/route';
1514
import './elasticsearch/overview';
1615
import './elasticsearch/indices';
1716
import './elasticsearch/index';

x-pack/legacy/plugins/monitoring/public/views/cluster/route/index.js

-33
This file was deleted.

0 commit comments

Comments
 (0)