Skip to content

Commit 7513754

Browse files
Fix TopGear login redirect link
1 parent 83e0bbf commit 7513754

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ class Loader extends React.Component {
5252
if ((communityId === 'wipro' || communityId === 'comcast') && !visitorGroups) {
5353
const returnUrl = encodeURIComponent(window.location.href);
5454
if (communityId === 'wipro') {
55-
window.location = `${config.URL.AUTH}/?retUrl=${config.URL.TOPGEAR}`;
55+
window.location = `${config.URL.AUTH}/?retUrl=${config.URL.TOPGEAR}&utm_source=${communityId}`;
56+
} else {
57+
window.location = `${config.URL.AUTH}/member?retUrl=${returnUrl}&utm_source=${communityId}`;
5658
}
57-
window.location = `${config.URL.AUTH}/member?retUrl=${returnUrl}&utm_source=${communityId}`;
5859
}
5960

6061
/* Redirect odl TopGear home to new TopGear App */

0 commit comments

Comments
 (0)