mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -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) {
|
if (event.altKey || event.metaKey || event.ctrlKey) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (targetUrl.startsWith('/app/')) {
|
|
||||||
const [, appId, path] = /\/app\/(.*?)((\/|\?|#|$).*)/.exec(targetUrl) || [];
|
|
||||||
if (!appId) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
getServices().application.navigateToApp(appId, { path });
|
getServices().application.navigateToUrl(targetUrl);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue