Skip to content

Commit

Permalink
feat: add accounnt 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 5da8d4d commit 031a566
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ BASE_URL=''
CREDENTIALS_BASE_URL=''
CSRF_TOKEN_API_PATH=''
ECOMMERCE_BASE_URL=''
ACCOUNT_SETTINGS_URL=''
ACCOUNT_PROFILE_URL=''
LANGUAGE_PREFERENCE_COOKIE_NAME=''
LMS_BASE_URL=''
LOGIN_URL=''
Expand Down
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ ECOMMERCE_BASE_URL='http://localhost:18130'
LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference'
LMS_BASE_URL='http://localhost:18000'
LOGIN_URL='http://localhost:18000/login'
ACCOUNT_PROFILE_URL='http://localhost:1995'
ACCOUNT_SETTINGS_URL='http://localhost:1997'
LOGOUT_URL='http://localhost:18000/logout'
LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg
Expand Down
2 changes: 2 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference'
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
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function ProgramCertificatesList({ intl }) {
const { username } = getAuthenticatedUser();
return (
<Hyperlink
destination={`${getConfig().LMS_BASE_URL}/u/${username}`}
destination={`${getConfig().ACCOUNT_PROFILE_URL}/u/${username}`}
className="mb-4 d-inline-block muted-link pl-3 pr-3"
>
<ChevronLeft className="mb-1" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProgramRecordsList/ProgramRecordsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function ProgramRecordsList() {
const { username } = getAuthenticatedUser();
return (
<Hyperlink
destination={`${getConfig().LMS_BASE_URL}/u/${username}`}
destination={`${getConfig().ACCOUNT_PROFILE_URL}/u/${username}`}
className="mb-4 d-inline-block muted-link pl-3 pr-3"
>
<ChevronLeft className="mb-1" />
Expand Down

0 comments on commit 031a566

Please sign in to comment.