mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
7056b98832
commit
116d998d4a
1 changed files with 5 additions and 1 deletions
|
@ -252,9 +252,13 @@ export default class ClusterManager {
|
|||
}
|
||||
|
||||
shouldRedirectFromOldBasePath(path) {
|
||||
// strip `s/{id}` prefix when checking for need to redirect
|
||||
if (path.startsWith('s/')) {
|
||||
path = path.split('/').slice(2).join('/');
|
||||
}
|
||||
|
||||
const isApp = path.startsWith('app/');
|
||||
const isKnownShortPath = ['login', 'logout', 'status'].includes(path);
|
||||
|
||||
return isApp || isKnownShortPath;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue