Skip to content

Commit 19219be

Browse files
Merge branch 'develop' into ast-challenge-listing-fix
2 parents e060656 + 8ccbd1c commit 19219be

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.circleci/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ workflows:
341341
branches:
342342
only:
343343
- develop
344-
- ast-challenge-listing-fix
345344
# This is alternate dev env for parallel testing
346345
- "build-test":
347346
context : org-global
@@ -362,15 +361,14 @@ workflows:
362361
filters:
363362
branches:
364363
only:
365-
- thrive-bug-fixes2
364+
- free
366365
# This is stage env for production QA releases
367366
- "build-prod-staging":
368367
context : org-global
369368
filters: &filters-staging
370369
branches:
371370
only:
372371
- develop
373-
- ast-challenge-listing-fix
374372
# Production builds are exectuted
375373
# when PR is merged to the master
376374
# Don't change anything in this configuration

src/shared/containers/tc-communities/Loader.jsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,19 @@ class Loader extends React.Component {
4646
!meta /* || (Date.now() - meta.timestamp) > MAXAGE */
4747
)) nextProps.loadMetaData(communityId, tokenV3);
4848

49-
/* TODO: This is a hacky way to handle SSO authentication for TopGear
50-
* (Wipro) and Zurich community visitors. Should be re-factored, but not it is not
51-
* clear, what exactly do we need to support it in general. */
52-
if ((communityId === 'wipro' || communityId === 'comcast') && !visitorGroups) {
49+
/* TODO: This is a hacky way to handle SSO authentication for TopGear */
50+
if (communityId === 'comcast' && !visitorGroups) {
5351
const returnUrl = encodeURIComponent(window.location.href);
54-
if (communityId === 'wipro') {
55-
window.location = `${config.URL.AUTH}/?retUrl=${config.URL.TOPGEAR}`;
56-
}
5752
window.location = `${config.URL.AUTH}/member?retUrl=${returnUrl}&utm_source=${communityId}`;
5853
}
5954

60-
/* Redirect odl TopGear home to new TopGear App */
61-
if (communityId === 'wipro'
62-
&& (window.location.pathname === '/' || window.location.pathname === '/__community__/wipro')) {
63-
window.location = config.URL.TOPGEAR;
55+
/* Redirect old TopGear home to new TopGear App and login redirect */
56+
if (communityId === 'wipro') {
57+
if (!visitorGroups) {
58+
window.location = `${config.URL.AUTH}/?retUrl=${config.URL.TOPGEAR}&utm_source=${communityId}`;
59+
} else if (window.location.pathname === '/' || window.location.pathname === '/__community__/wipro') {
60+
window.location = config.URL.TOPGEAR;
61+
}
6462
}
6563
}
6664

0 commit comments

Comments
 (0)