mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[FTR - Common page] Better subUrl
handling (#159191)
This commit is contained in:
parent
66ba9d20a6
commit
119c3a7720
1 changed files with 6 additions and 4 deletions
|
@ -138,10 +138,12 @@ export class CommonPageObject extends FtrService {
|
|||
pathname: `${basePath}${this.config.get(['apps', appName]).pathname}`,
|
||||
};
|
||||
|
||||
if (shouldUseHashForSubUrl) {
|
||||
appConfig.hash = useActualUrl ? subUrl : `/${appName}/${subUrl}`;
|
||||
} else {
|
||||
appConfig.pathname += `/${subUrl}`;
|
||||
if (typeof subUrl === 'string') {
|
||||
if (shouldUseHashForSubUrl) {
|
||||
appConfig.hash = useActualUrl ? subUrl : `/${appName}/${subUrl}`;
|
||||
} else {
|
||||
appConfig.pathname += `/${subUrl}`;
|
||||
}
|
||||
}
|
||||
|
||||
await this.navigate({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue