Skip to content

Commit

Permalink
feat: add account and profile urls in env files and replace legacy url
Browse files Browse the repository at this point in the history
  • Loading branch information
mashal-m committed Dec 1, 2023
1 parent 1f11c9c commit 9a4b6ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ BASE_URL='localhost:8734'
LMS_BASE_URL='http://localhost:18000'
LOGIN_URL='http://localhost:18000/login'
LOGOUT_URL='http://localhost:18000/logout'
ACCOUNT_PROFILE_URL='http://localhost:1995'
ACCOUNT_SETTINGS_URL='http://localhost:1997'
LOGO_URL='https://edx-cdn.org/v3/default/logo.svg'
LOGO_TRADEMARK_URL='https://edx-cdn.org/v3/default/logo-trademark.svg'
LOGO_WHITE_URL='https://edx-cdn.org/v3/default/logo-white.svg'
Expand Down
4 changes: 2 additions & 2 deletions src/components/masters-page/MastersPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ function MastersPage({
},
{
type: 'item',
href: `${process.env.LMS_BASE_URL}/u/${getAuthenticatedUser().username}`,
href: `${process.env.ACCOUNT_PROFILE_URL}/u/${getAuthenticatedUser().username}`,
content: 'My Profile',
},
{
type: 'item',
href: `${process.env.LMS_BASE_URL}/account/settings`,
href: process.env.ACCOUNT_SETTINGS_URL,
content: 'Account Settings',
},
{
Expand Down

0 comments on commit 9a4b6ee

Please sign in to comment.