mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Respect the basePath for the link to the user profile in the k7 header (#26417)
This commit is contained in:
parent
f1d9f0c4ba
commit
7caa727a0a
1 changed files with 2 additions and 1 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue