File tree Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
ACCESS_TOKEN_COOKIE_NAME = edx-jwt-cookie-header-payload
2
+ ACCOUNT_PROFILE_URL = http://localhost:1995
3
+ ACCOUNT_SETTINGS_URL = http://localhost:1997
2
4
BASE_URL = localhost:8080
3
5
CREDENTIALS_BASE_URL = http://localhost:18150
4
6
CSRF_TOKEN_API_PATH = /csrf/api/v1/token
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ Environment Variables
26
26
Defaults to "localhost" in development.
27
27
* ``LOGO_URL `` - The URL of the site's logo. This logo is displayed in the header.
28
28
* ``ORDER_HISTORY_URL `` - The URL of the order history page.
29
+ * ``ACCOUNT_PROFILE_URL `` - The URL of the account profile page.
30
+ * ``ACCOUNT_SETTINGS_URL `` - The URL of the account settings page.
29
31
* ``AUTHN_MINIMAL_HEADER `` - A boolean flag which hides the main menu, user menu, and logged-out
30
32
menu items when truthy. This is intended to be used in micro-frontends like
31
33
frontend-app-authentication in which these menus are considered distractions from the user's task.
Original file line number Diff line number Diff line change @@ -55,12 +55,12 @@ const Header = ({ intl }) => {
55
55
} ,
56
56
{
57
57
type : 'item' ,
58
- href : `${ config . LMS_BASE_URL } /u/${ authenticatedUser . username } ` ,
58
+ href : `${ config . ACCOUNT_PROFILE_URL } /u/${ authenticatedUser . username } ` ,
59
59
content : intl . formatMessage ( messages [ 'header.user.menu.profile' ] ) ,
60
60
} ,
61
61
{
62
62
type : 'item' ,
63
- href : ` ${ config . LMS_BASE_URL } /account/settings` ,
63
+ href : config . ACCOUNT_SETTINGS_URL ,
64
64
content : intl . formatMessage ( messages [ 'header.user.menu.account.settings' ] ) ,
65
65
} ,
66
66
{
Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ const AuthenticatedUserDropdown = ({ intl, username }) => {
29
29
</ Dropdown . Toggle >
30
30
< Dropdown . Menu className = "dropdown-menu-right" >
31
31
{ dashboardMenuItem }
32
- < Dropdown . Item href = { `${ getConfig ( ) . LMS_BASE_URL } /u/${ username } ` } >
32
+ < Dropdown . Item href = { `${ getConfig ( ) . ACCOUNT_PROFILE_URL } /u/${ username } ` } >
33
33
{ intl . formatMessage ( messages . profile ) }
34
34
</ Dropdown . Item >
35
- < Dropdown . Item href = { ` ${ getConfig ( ) . LMS_BASE_URL } /account/settings` } >
35
+ < Dropdown . Item href = { getConfig ( ) . ACCOUNT_SETTINGS_URL } >
36
36
{ intl . formatMessage ( messages . account ) }
37
37
</ Dropdown . Item >
38
38
{ getConfig ( ) . ORDER_HISTORY_URL && (
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ Enzyme.configure({ adapter: new Adapter() });
22
22
// These configuration values are usually set in webpack's EnvironmentPlugin however
23
23
// Jest does not use webpack so we need to set these so for testing
24
24
process . env . ACCESS_TOKEN_COOKIE_NAME = 'edx-jwt-cookie-header-payload' ;
25
+ process . env . ACCOUNT_PROFILE_URL = 'http://localhost:1995' ;
26
+ process . env . ACCOUNT_SETTINGS_URL = 'http://localhost:1997' ;
25
27
process . env . BASE_URL = 'localhost:1995' ;
26
28
process . env . CREDENTIALS_BASE_URL = 'http://localhost:18150' ;
27
29
process . env . CSRF_TOKEN_API_PATH = '/csrf/api/v1/token' ;
You can’t perform that action at this time.
0 commit comments