Skip to content

Commit 8a63b99

Browse files
authored
chore: make sure links point to MFE not legacy (#445)
* 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
1 parent ea4506b commit 8a63b99

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.env.development

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ ECOMMERCE_BASE_URL='http://localhost:18130'
1414
ENTERPRISE_ACCESS_BASE_URL='http://localhost:18270'
1515
LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference'
1616
LMS_BASE_URL='http://localhost:18000'
17+
ACCOUNT_PROFILE_URL='http://localhost:1995'
18+
ACCOUNT_SETTINGS_URL='http://localhost:1997'
1719
LICENSE_MANAGER_URL='http://localhost:18170'
1820
LICENSE_MANAGER_DJANGO_URL='http://localhost:18170'
1921
SUPPORT_CONFLUENCE='localhost:18450'

src/supportHeader/Header.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import MobileHeader from './MobileHeader';
1414
import ROUTES from '../data/constants/routes';
1515

1616
ensureConfig([
17+
'ACCOUNT_PROFILE_URL',
18+
'ACCOUNT_SETTINGS_URL',
1719
'LMS_BASE_URL',
1820
'LOGOUT_URL',
1921
'LOGIN_URL',
@@ -143,12 +145,12 @@ export default function Header() {
143145
dashboardMenuItem,
144146
{
145147
type: 'item',
146-
href: `${config.LMS_BASE_URL}/u/${authenticatedUser.username}`,
148+
href: `${config.ACCOUNT_PROFILE_URL}/u/${authenticatedUser.username}`,
147149
content: 'Profile',
148150
},
149151
{
150152
type: 'item',
151-
href: `${config.LMS_BASE_URL}/account/settings`,
153+
href: config.ACCOUNT_SETTINGS_URL,
152154
content: 'Account',
153155
},
154156
logoutMenuItem,

0 commit comments

Comments
 (0)