From 736bbd5a0011c9b071eaa2691d7db604702d8ced Mon Sep 17 00:00:00 2001 From: Deborah Kaplan Date: Tue, 11 Feb 2025 16:45:26 +0000 Subject: [PATCH] chore: make sure links point to MFE not legacy now that the legacy profile and account pages have been removed, we need to make sure that all of the links point to the MFE URLs; we were relying on the legacy applications to do redirection before. FIXES: APER-3884 FIXES: openedx/public-engineering#71 --- src/supportHeader/Header.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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,