Skip to content

Commit 38e9f90

Browse files
TopGear : Redirect home to topgear-app
1 parent a76f8f8 commit 38e9f90

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/shared/routes/Communities/Wipro/Routes.jsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import ChallengeDetails from 'routes/ChallengeDetails';
66
import ChallengeListing from 'routes/Communities/ChallengeListing';
77
import ChallengeListingBanner from 'components/tc-communities/communities/wipro/ChallengeListingBanner';
8-
import ContentfulRoute from 'components/Contentful/Route';
8+
// import ContentfulRoute from 'components/Contentful/Route';
99
import Header from 'containers/tc-communities/Header';
1010
import LeaderboardBanner from 'components/tc-communities/communities/wipro/LeaderboardBanner';
1111
import PT from 'prop-types';
@@ -20,7 +20,7 @@ import Viewport from 'components/Contentful/Viewport';
2020
import theme from 'components/tc-communities/communities/wipro/theme';
2121
import { ThemeProvider } from 'react-css-super-themr';
2222
import { Route, Switch } from 'react-router-dom';
23-
import { config } from 'topcoder-react-utils';
23+
import { config, isomorphy } from 'topcoder-react-utils';
2424

2525
import Leaderboard from '../Leaderboard';
2626

@@ -115,11 +115,22 @@ export default function Wipro({ base, meta }) {
115115
exact
116116
path={`${base}/leaderboard`}
117117
/>
118+
{/*
118119
<ContentfulRoute
119120
baseUrl={base}
120121
id="1VXRAIxJdi6eCeeyKCmicK"
121122
spaceName="topgear"
122123
/>
124+
*/}
125+
<Route
126+
path={base}
127+
component={() => {
128+
if (isomorphy.isClientSide()) {
129+
window.location = config.URL.TOPGEAR;
130+
}
131+
return null;
132+
}}
133+
/>
123134
</Switch>
124135
<Viewport
125136
id="2rJCDsGCHTDygyx4dqxlNq"

0 commit comments

Comments
 (0)