Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit 9a4b6ee

Browse files
author
mashal-m
committed
feat: add account and profile urls in env files and replace legacy url
1 parent 1f11c9c commit 9a4b6ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.env.development

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ BASE_URL='localhost:8734'
22
LMS_BASE_URL='http://localhost:18000'
33
LOGIN_URL='http://localhost:18000/login'
44
LOGOUT_URL='http://localhost:18000/logout'
5+
ACCOUNT_PROFILE_URL='http://localhost:1995'
6+
ACCOUNT_SETTINGS_URL='http://localhost:1997'
57
LOGO_URL='https://edx-cdn.org/v3/default/logo.svg'
68
LOGO_TRADEMARK_URL='https://edx-cdn.org/v3/default/logo-trademark.svg'
79
LOGO_WHITE_URL='https://edx-cdn.org/v3/default/logo-white.svg'

src/components/masters-page/MastersPage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ function MastersPage({
2828
},
2929
{
3030
type: 'item',
31-
href: `${process.env.LMS_BASE_URL}/u/${getAuthenticatedUser().username}`,
31+
href: `${process.env.ACCOUNT_PROFILE_URL}/u/${getAuthenticatedUser().username}`,
3232
content: 'My Profile',
3333
},
3434
{
3535
type: 'item',
36-
href: `${process.env.LMS_BASE_URL}/account/settings`,
36+
href: process.env.ACCOUNT_SETTINGS_URL,
3737
content: 'Account Settings',
3838
},
3939
{

0 commit comments

Comments
 (0)