From bf694f8007e5477fc5716fa1213a9cb0c7f1b36b Mon Sep 17 00:00:00 2001 From: kobelb Date: Thu, 29 Nov 2018 06:43:49 -0800 Subject: [PATCH] Respect the basePath for the link to the user profile in the k7 header --- .../plugins/security/public/views/nav_control/nav_control.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/security/public/views/nav_control/nav_control.js b/x-pack/plugins/security/public/views/nav_control/nav_control.js index e8c1011f3acfc..1158557fabe3a 100644 --- a/x-pack/plugins/security/public/views/nav_control/nav_control.js +++ b/x-pack/plugins/security/public/views/nav_control/nav_control.js @@ -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(() => {