From 736bbd5a0011c9b071eaa2691d7db604702d8ced Mon Sep 17 00:00:00 2001 From: Deborah Kaplan Date: Tue, 11 Feb 2025 16:45:26 +0000 Subject: [PATCH 1/2] 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, From 27c71f791618ead6d470136dc410a50de425cd48 Mon Sep 17 00:00:00 2001 From: Deborah Kaplan Date: Tue, 11 Feb 2025 17:57:47 +0000 Subject: [PATCH 2/2] 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 --- .env.development | 2 ++ 1 file changed, 2 insertions(+) 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'