Commit 232bea8 1 parent 27e981f commit 232bea8 Copy full SHA for 232bea8
File tree 3 files changed +1
-45
lines changed
x-pack/legacy/plugins/monitoring/public
3 files changed +1
-45
lines changed Original file line number Diff line number Diff line change 4
4
* you may not use this file except in compliance with the Elastic License.
5
5
*/
6
6
7
- import chrome from '../np_imports/ui/chrome' ;
8
-
9
7
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 ] } ` ;
19
9
}
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import './alerts';
11
11
import './license' ;
12
12
import './cluster/listing' ;
13
13
import './cluster/overview' ;
14
- import './cluster/route' ;
15
14
import './elasticsearch/overview' ;
16
15
import './elasticsearch/indices' ;
17
16
import './elasticsearch/index' ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments