File tree Expand file tree Collapse file tree 4 files changed +17
-12
lines changed
server/tc-communities/wipro
containers/tc-communities Expand file tree Collapse file tree 4 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -341,6 +341,7 @@ workflows:
341
341
branches :
342
342
only :
343
343
- develop
344
+ - topgear-app
344
345
# This is alternate dev env for parallel testing
345
346
- " build-test " :
346
347
context : org-global
@@ -369,6 +370,7 @@ workflows:
369
370
branches :
370
371
only :
371
372
- develop
373
+ - topgear-app
372
374
# Production builds are exectuted
373
375
# when PR is merged to the master
374
376
# Don't change anything in this configuration
Original file line number Diff line number Diff line change 29
29
"menuItems" : [
30
30
{
31
31
"title" : " Home" ,
32
- "url" : " /"
33
- }, {
34
- "title" : " TopGear Operations" ,
35
- "openNewTab" : true ,
36
32
"url" : " https://topgear-app.wipro.com"
37
33
}, {
38
34
"title" : " Challenges" ,
39
35
"url" : " /challenges"
40
36
}, {
41
37
"title" : " Leaderboard" ,
42
38
"url" : " /leaderboard"
43
- }, {
44
- "title" : " FAQ" ,
45
- "url" : " https://topgear-app.wipro.com/faq-categories"
46
39
}
47
40
],
48
41
"newsFeed" : " http://www.topcoder.com/feed" ,
Original file line number Diff line number Diff line change @@ -51,11 +51,10 @@ class Loader extends React.Component {
51
51
* clear, what exactly do we need to support it in general. */
52
52
if ( ( communityId === 'wipro' || communityId === 'comcast' ) && ! visitorGroups ) {
53
53
const returnUrl = encodeURIComponent ( window . location . href ) ;
54
- let subpath = 'member' ;
55
54
if ( communityId === 'wipro' ) {
56
- subpath = 'sso-login/' ;
55
+ window . location = ` ${ config . URL . AUTH } /?retUrl= ${ config . URL . TOPGEAR } ` ;
57
56
}
58
- window . location = `${ config . URL . AUTH } /${ subpath } ?retUrl=${ returnUrl } &utm_source=${ communityId } ` ;
57
+ window . location = `${ config . URL . AUTH } /member ?retUrl=${ returnUrl } &utm_source=${ communityId } ` ;
59
58
}
60
59
}
61
60
Original file line number Diff line number Diff line change 5
5
import ChallengeDetails from 'routes/ChallengeDetails' ;
6
6
import ChallengeListing from 'routes/Communities/ChallengeListing' ;
7
7
import ChallengeListingBanner from 'components/tc-communities/communities/wipro/ChallengeListingBanner' ;
8
- import ContentfulRoute from 'components/Contentful/Route' ;
8
+ // import ContentfulRoute from 'components/Contentful/Route';
9
9
import Header from 'containers/tc-communities/Header' ;
10
10
import LeaderboardBanner from 'components/tc-communities/communities/wipro/LeaderboardBanner' ;
11
11
import PT from 'prop-types' ;
@@ -20,7 +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
+ import { config , isomorphy } from 'topcoder-react-utils' ;
24
24
25
25
import Leaderboard from '../Leaderboard' ;
26
26
@@ -115,11 +115,22 @@ export default function Wipro({ base, meta }) {
115
115
exact
116
116
path = { `${ base } /leaderboard` }
117
117
/>
118
+ { /*
118
119
<ContentfulRoute
119
120
baseUrl={base}
120
121
id="1VXRAIxJdi6eCeeyKCmicK"
121
122
spaceName="topgear"
122
123
/>
124
+ */ }
125
+ < Route
126
+ path = { base }
127
+ component = { ( ) => {
128
+ if ( isomorphy . isClientSide ( ) ) {
129
+ window . location = config . URL . TOPGEAR ;
130
+ }
131
+ return null ;
132
+ } }
133
+ />
123
134
</ Switch >
124
135
< Viewport
125
136
id = "2rJCDsGCHTDygyx4dqxlNq"
You can’t perform that action at this time.
0 commit comments