[FTR - Common page] Better subUrl handling (#159191)

This commit is contained in:
Alejandro Fernández Haro 2023-06-07 16:55:03 +02:00 committed by GitHub
parent 66ba9d20a6
commit 119c3a7720
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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({