File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
src/shared/routes/Communities/Wipro Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 55import ChallengeDetails from 'routes/ChallengeDetails' ;
66import ChallengeListing from 'routes/Communities/ChallengeListing' ;
77import ChallengeListingBanner from 'components/tc-communities/communities/wipro/ChallengeListingBanner' ;
8- import ContentfulRoute from 'components/Contentful/Route' ;
8+ // import ContentfulRoute from 'components/Contentful/Route';
99import Header from 'containers/tc-communities/Header' ;
1010import LeaderboardBanner from 'components/tc-communities/communities/wipro/LeaderboardBanner' ;
1111import PT from 'prop-types' ;
@@ -20,7 +20,7 @@ import Viewport from 'components/Contentful/Viewport';
2020import theme from 'components/tc-communities/communities/wipro/theme' ;
2121import { ThemeProvider } from 'react-css-super-themr' ;
2222import { Route , Switch } from 'react-router-dom' ;
23- import { config } from 'topcoder-react-utils' ;
23+ import { config , isomorphy } from 'topcoder-react-utils' ;
2424
2525import 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"
You can’t perform that action at this time.
0 commit comments