Respect the basePath for the link to the user profile in the k7 header (#26417)

This commit is contained in:
Brandon Kobel 2018-11-29 08:00:14 -08:00 committed by GitHub
parent f1d9f0c4ba
commit 7caa727a0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@ import ReactDOM from 'react-dom';
import { constant } from 'lodash';
import { uiModules } from 'ui/modules';
import chrome from 'ui/chrome';
import { chromeNavControlsRegistry } from 'ui/registry/chrome_nav_controls';
import template from 'plugins/security/views/nav_control/nav_control.html';
@ -58,7 +59,7 @@ chromeHeaderNavControlsRegistry.register((ShieldUser, kbnBaseUrl, Private) => ({
const props = {
user: ShieldUser.getCurrent(),
route: `${kbnBaseUrl}#/account`,
route: chrome.addBasePath(`${kbnBaseUrl}#/account`),
};
props.user.$promise.then(() => {