mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[basePathProxy] redirect login urls to new basePath
This commit is contained in:
parent
cd4e1dc7de
commit
e8db02577b
1 changed files with 3 additions and 2 deletions
|
@ -109,9 +109,10 @@ export default class BasePathProxy {
|
|||
|
||||
const isGet = req.method === 'get';
|
||||
const isBasePath = oldBasePath.length === 3;
|
||||
const isApp = kbnPath.slice(0, 4) === 'app/';
|
||||
const isApp = kbnPath.startsWith('app/');
|
||||
const isKnownShortPath = ['login', 'logout', 'status'].includes(kbnPath);
|
||||
|
||||
if (isGet && isBasePath && isApp) {
|
||||
if (isGet && isBasePath && (isApp || isKnownShortPath)) {
|
||||
return reply.redirect(`${basePath}/${kbnPath}`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue