File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313 ROLE_CONNECT_MANAGER ,
1414 ROLE_ADMINISTRATOR ,
1515 EVENT_ROUTE_CHANGE ,
16+ ACCOUNTS_APP_LOGIN_URL ,
1617 ACCOUNTS_APP_REGISTER_URL
1718} from '../../config/constants'
1819
@@ -98,7 +99,8 @@ class TopBarContainer extends React.Component {
9899 const isProjectDetails = / p r o j e c t s \/ \d + / . test ( currentPath )
99100 const isHomePage = this . context . router . isActive ( '/' , true )
100101 // NOTE: hardcoding to connectv2, once connect v1
101- const loginUrl = `ACCOUNTS_APP_LOGIN_URL?retUrl=https://connectv2.${ DOMAIN } /`
102+ window . host
103+ const loginUrl = `${ ACCOUNTS_APP_LOGIN_URL } ?retUrl=${ window . location . protocol } //${ window . location . host } /`
102104 const registerUrl = ! isHomePage ? ACCOUNTS_APP_REGISTER_URL : null
103105 return (
104106 < div >
You can’t perform that action at this time.
0 commit comments