diff --git a/.circleci/config.yml b/.circleci/config.yml
index 66156c3f8c..2477cf3da4 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -333,6 +333,7 @@ workflows:
branches:
only:
- develop
+ - topgear-app
# This is alternate dev env for parallel testing
- deployTest:
context : org-global
@@ -361,6 +362,7 @@ workflows:
branches:
only:
- develop
+ - topgear-app
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
diff --git a/src/server/tc-communities/wipro/metadata.json b/src/server/tc-communities/wipro/metadata.json
index 40cd8f5975..4ba1897f95 100644
--- a/src/server/tc-communities/wipro/metadata.json
+++ b/src/server/tc-communities/wipro/metadata.json
@@ -29,10 +29,6 @@
"menuItems": [
{
"title": "Home",
- "url": "/"
- }, {
- "title": "TopGear Operations",
- "openNewTab": true,
"url": "https://topgear-app.wipro.com"
}, {
"title": "Challenges",
@@ -40,9 +36,6 @@
}, {
"title": "Leaderboard",
"url": "/leaderboard"
- }, {
- "title": "FAQ",
- "url": "https://topgear-app.wipro.com/faq-categories"
}
],
"newsFeed": "http://www.topcoder.com/feed",
diff --git a/src/shared/containers/tc-communities/Loader.jsx b/src/shared/containers/tc-communities/Loader.jsx
index c05eb4e69b..e0c754d5de 100644
--- a/src/shared/containers/tc-communities/Loader.jsx
+++ b/src/shared/containers/tc-communities/Loader.jsx
@@ -51,11 +51,10 @@ class Loader extends React.Component {
* clear, what exactly do we need to support it in general. */
if ((communityId === 'wipro' || communityId === 'comcast') && !visitorGroups) {
const returnUrl = encodeURIComponent(window.location.href);
- let subpath = 'member';
if (communityId === 'wipro') {
- subpath = 'sso-login/';
+ window.location = `${config.URL.AUTH}/?retUrl=${config.URL.TOPGEAR}`;
}
- window.location = `${config.URL.AUTH}/${subpath}?retUrl=${returnUrl}&utm_source=${communityId}`;
+ window.location = `${config.URL.AUTH}/member?retUrl=${returnUrl}&utm_source=${communityId}`;
}
}
diff --git a/src/shared/routes/Communities/Wipro/Routes.jsx b/src/shared/routes/Communities/Wipro/Routes.jsx
index 41a7ab889d..eb51249a56 100644
--- a/src/shared/routes/Communities/Wipro/Routes.jsx
+++ b/src/shared/routes/Communities/Wipro/Routes.jsx
@@ -5,7 +5,7 @@
import ChallengeDetails from 'routes/ChallengeDetails';
import ChallengeListing from 'routes/Communities/ChallengeListing';
import ChallengeListingBanner from 'components/tc-communities/communities/wipro/ChallengeListingBanner';
-import ContentfulRoute from 'components/Contentful/Route';
+// import ContentfulRoute from 'components/Contentful/Route';
import Header from 'containers/tc-communities/Header';
import LeaderboardBanner from 'components/tc-communities/communities/wipro/LeaderboardBanner';
import PT from 'prop-types';
@@ -20,7 +20,7 @@ import Viewport from 'components/Contentful/Viewport';
import theme from 'components/tc-communities/communities/wipro/theme';
import { ThemeProvider } from 'react-css-super-themr';
import { Route, Switch } from 'react-router-dom';
-import { config } from 'topcoder-react-utils';
+import { config, isomorphy } from 'topcoder-react-utils';
import Leaderboard from '../Leaderboard';
@@ -115,11 +115,22 @@ export default function Wipro({ base, meta }) {
exact
path={`${base}/leaderboard`}
/>
+ {/*
+ */}
+ {
+ if (isomorphy.isClientSide()) {
+ window.location = config.URL.TOPGEAR;
+ }
+ return null;
+ }}
+ />