diff --git a/.env.development b/.env.development index 1c1147303..ca8d67253 100644 --- a/.env.development +++ b/.env.development @@ -14,6 +14,8 @@ ECOMMERCE_BASE_URL='http://localhost:18130' ENTERPRISE_ACCESS_BASE_URL='http://localhost:18270' LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference' LMS_BASE_URL='http://localhost:18000' +ACCOUNT_PROFILE_URL='http://localhost:1995' +ACCOUNT_SETTINGS_URL='http://localhost:1997' LICENSE_MANAGER_URL='http://localhost:18170' LICENSE_MANAGER_DJANGO_URL='http://localhost:18170' SUPPORT_CONFLUENCE='localhost:18450' diff --git a/src/supportHeader/Header.jsx b/src/supportHeader/Header.jsx index 7fcfc107d..399f85cb6 100644 --- a/src/supportHeader/Header.jsx +++ b/src/supportHeader/Header.jsx @@ -14,6 +14,8 @@ import MobileHeader from './MobileHeader'; import ROUTES from '../data/constants/routes'; ensureConfig([ + 'ACCOUNT_PROFILE_URL', + 'ACCOUNT_SETTINGS_URL', 'LMS_BASE_URL', 'LOGOUT_URL', 'LOGIN_URL', @@ -143,12 +145,12 @@ export default function Header() { dashboardMenuItem, { type: 'item', - href: `${config.LMS_BASE_URL}/u/${authenticatedUser.username}`, + href: `${config.ACCOUNT_PROFILE_URL}/u/${authenticatedUser.username}`, content: 'Profile', }, { type: 'item', - href: `${config.LMS_BASE_URL}/account/settings`, + href: config.ACCOUNT_SETTINGS_URL, content: 'Account', }, logoutMenuItem,