Skip to content

Commit 736bbd5

Browse files
committed
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 736bbd5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)