mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
parent
e01bab8d26
commit
501e46f3ca
1 changed files with 2 additions and 8 deletions
|
@ -24,12 +24,6 @@ export const createAppNavigationHandler = (targetUrl: string) => (event: MouseEv
|
|||
if (event.altKey || event.metaKey || event.ctrlKey) {
|
||||
return;
|
||||
}
|
||||
if (targetUrl.startsWith('/app/')) {
|
||||
const [, appId, path] = /\/app\/(.*?)((\/|\?|#|$).*)/.exec(targetUrl) || [];
|
||||
if (!appId) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
getServices().application.navigateToApp(appId, { path });
|
||||
}
|
||||
event.preventDefault();
|
||||
getServices().application.navigateToUrl(targetUrl);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue