correct path with this missing slash (#45666) (#45709)

This commit is contained in:
Lee Drengenberg 2019-09-13 18:55:37 -05:00 committed by GitHub
parent ead2468742
commit 5e38b2dfb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,10 +85,11 @@ export function CommonPageProvider({ getService, getPageObjects }) {
// we onlt use the pathname from the appConfig and use the subUrl as the hash
const appConfig = {
pathname: `${basePath}${config.get(['apps', appName]).pathname}`,
hash: `${appName}/${subUrl}`,
hash: `/${appName}/${subUrl}`,
};
const appUrl = getUrl.noAuth(config.get('servers.kibana'), appConfig);
await retry.try(async () => {
await CommonPage.navigateToUrlAndHandleAlert(appUrl, shouldAcceptAlert);
const currentUrl = shouldLoginIfPrompted ? await this.loginIfPrompted(appUrl) : await browser.getCurrentUrl();