File tree 5 files changed +7
-1
lines changed
5 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ module.exports = {
142
142
STUDIO : 'https://studio.topcoder-dev.com' ,
143
143
TCO : 'https://www.topcoder.com/tco' ,
144
144
TCO17 : 'https://tco17.topcoder.com/' ,
145
+ TCO19 : 'https://community-app.topcoder-dev.com/__community__/tco19' ,
145
146
146
147
TOPGEAR : 'https://dev-topgear.wipro.com' ,
147
148
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ module.exports = {
41
41
/* Connector URL of the TC accounts App. */
42
42
ACCOUNTS_APP_CONNECTOR : 'https://accounts-auth0.topcoder.com/' ,
43
43
TCO17 : 'https://tco17.topcoder.com/' ,
44
+ TCO19 : 'https://tco19.topcoder.com/' ,
44
45
45
46
TOPGEAR : 'https://topgear-app.wipro.com' ,
46
47
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ function Header(props) {
81
81
icon : < IconNavExit /> ,
82
82
// TODO: In addition to hitting ${AUTH_URL}/logout, which logs out
83
83
// from the accounts-app, we should wipe out auth cookies!
84
- link : `${ AUTH_URL } /logout? retUrl=${ logoutRedirect } ` ,
84
+ link : `${ AUTH_URL } ?logout=true& retUrl=${ encodeURIComponent ( logoutRedirect ) } ` ,
85
85
title : 'Log Out' ,
86
86
} ] ,
87
87
} ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { HeroImageLoader } from 'components/Contentful/BlogPost';
15
15
import ContentfulRoute from 'components/Contentful/Route' ;
16
16
import Profile from 'routes/Profile' ;
17
17
import ProfileStats from 'routes/ProfileStats' ;
18
+ import { config } from 'topcoder-react-utils' ;
18
19
19
20
20
21
import headerTheme from 'components/tc-communities/communities/tco19/themes/header.scss' ;
@@ -28,6 +29,7 @@ export default function TCO19({ base, meta }) {
28
29
baseUrl = { base }
29
30
pageId = { match . params . pageId || 'home' }
30
31
theme = { headerTheme }
32
+ logoutRedirect = { config . URL . TCO19 }
31
33
/>
32
34
< Switch >
33
35
< Route
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import Viewport from 'components/Contentful/Viewport';
20
20
import theme from 'components/tc-communities/communities/wipro/theme' ;
21
21
import { ThemeProvider } from 'react-css-super-themr' ;
22
22
import { Route , Switch } from 'react-router-dom' ;
23
+ import { config } from 'topcoder-react-utils' ;
23
24
24
25
import Leaderboard from '../Leaderboard' ;
25
26
@@ -32,6 +33,7 @@ export default function Wipro({ base, meta }) {
32
33
< Header
33
34
baseUrl = { base }
34
35
pageId = { match . params . pageId || 'home' }
36
+ logoutRedirect = { config . URL . TOPGEAR }
35
37
/>
36
38
< Switch >
37
39
< Route
You can’t perform that action at this time.
0 commit comments