feat: add accounnt and profile urls in env files and replace legacy url
This commit is contained in:
2
.env
2
.env
@@ -6,6 +6,8 @@ NODE_ENV='production'
|
|||||||
ACCESS_TOKEN_COOKIE_NAME=''
|
ACCESS_TOKEN_COOKIE_NAME=''
|
||||||
BASE_URL=''
|
BASE_URL=''
|
||||||
CONTACT_URL=''
|
CONTACT_URL=''
|
||||||
|
ACCOUNT_SETTINGS_URL=''
|
||||||
|
ACCOUNT_PROFILE_URL=''
|
||||||
CREDENTIALS_BASE_URL=''
|
CREDENTIALS_BASE_URL=''
|
||||||
CREDIT_HELP_LINK_URL=''
|
CREDIT_HELP_LINK_URL=''
|
||||||
CSRF_TOKEN_API_PATH=''
|
CSRF_TOKEN_API_PATH=''
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
|
|||||||
BASE_URL='http://localhost:2000'
|
BASE_URL='http://localhost:2000'
|
||||||
CONTACT_URL='http://localhost:18000/contact'
|
CONTACT_URL='http://localhost:18000/contact'
|
||||||
CREDENTIALS_BASE_URL='http://localhost:18150'
|
CREDENTIALS_BASE_URL='http://localhost:18150'
|
||||||
|
ACCOUNT_PROFILE_URL=http://localhost:1995
|
||||||
|
ACCOUNT_SETTINGS_URL=http://localhost:1997
|
||||||
CREDIT_HELP_LINK_URL='https://edx.readthedocs.io/projects/edx-guide-for-students/en/latest/SFD_credit_courses.html#keep-track-of-credit-requirements'
|
CREDIT_HELP_LINK_URL='https://edx.readthedocs.io/projects/edx-guide-for-students/en/latest/SFD_credit_courses.html#keep-track-of-credit-requirements'
|
||||||
CSRF_TOKEN_API_PATH='/csrf/api/v1/token'
|
CSRF_TOKEN_API_PATH='/csrf/api/v1/token'
|
||||||
DISCOVERY_API_BASE_URL='http://localhost:18381'
|
DISCOVERY_API_BASE_URL='http://localhost:18381'
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
|
|||||||
IGNORED_ERROR_REGEX=''
|
IGNORED_ERROR_REGEX=''
|
||||||
LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference'
|
LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference'
|
||||||
LMS_BASE_URL='http://localhost:18000'
|
LMS_BASE_URL='http://localhost:18000'
|
||||||
|
ACCOUNT_PROFILE_URL=http://localhost:1995
|
||||||
|
ACCOUNT_SETTINGS_URL=http://localhost:1997
|
||||||
LOGIN_URL='http://localhost:18000/login'
|
LOGIN_URL='http://localhost:18000/login'
|
||||||
LOGOUT_URL='http://localhost:18000/logout'
|
LOGOUT_URL='http://localhost:18000/logout'
|
||||||
LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
|
LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const IntlProfileLink = ({ intl }) => {
|
|||||||
<Hyperlink
|
<Hyperlink
|
||||||
variant="muted"
|
variant="muted"
|
||||||
isInline
|
isInline
|
||||||
destination={`${getConfig().LMS_BASE_URL}/u/${username}`}
|
destination={`${getConfig().ACCOUNT_PROFILE_URL}/u/${username}`}
|
||||||
>
|
>
|
||||||
{intl.formatMessage(messages.profileLink)}
|
{intl.formatMessage(messages.profileLink)}
|
||||||
</Hyperlink>
|
</Hyperlink>
|
||||||
|
|||||||
Reference in New Issue
Block a user