}
- path={`${base}/settings`}
- />
}
diff --git a/src/shared/routes/Communities/TCO23/Routes.jsx b/src/shared/routes/Communities/TCO23/Routes.jsx
index 126febfe6a..8b6b031818 100644
--- a/src/shared/routes/Communities/TCO23/Routes.jsx
+++ b/src/shared/routes/Communities/TCO23/Routes.jsx
@@ -8,9 +8,7 @@ import React from 'react';
import { Route, Switch } from 'react-router-dom';
import ContentfulRoute from 'components/Contentful/Route';
import ContentfulMenu from 'components/Contentful/Menu';
-import Profile from 'routes/Profile';
import ProfileStats from 'routes/ProfileStats';
-import Settings from 'routes/Settings';
export default function TCO23({ base, meta }) {
return (
@@ -26,20 +24,11 @@ export default function TCO23({ base, meta }) {
) : null
}
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
}
exact
path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})/details`}
/>
- }
- path={`${base}/settings`}
- />
}
diff --git a/src/shared/routes/Communities/TaskForce/Routes.jsx b/src/shared/routes/Communities/TaskForce/Routes.jsx
index 28a718e003..237c950f05 100644
--- a/src/shared/routes/Communities/TaskForce/Routes.jsx
+++ b/src/shared/routes/Communities/TaskForce/Routes.jsx
@@ -13,7 +13,6 @@ import React from 'react';
import Submission from 'routes/Submission';
import SubmissionManagement from 'routes/SubmissionManagement';
import TermsDetail from 'routes/TermsDetail';
-import Profile from 'routes/Profile';
import ProfileStats from 'routes/ProfileStats';
import { Route, Switch } from 'react-router-dom';
import { ThemeProvider } from 'react-css-super-themr';
@@ -76,11 +75,6 @@ export default function TaskForce({ base, meta }) {
exact
path={`${base}/challenges/terms/detail/:termId`}
/>
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
}
exact
diff --git a/src/shared/routes/Communities/TcProdDev/Routes/index.jsx b/src/shared/routes/Communities/TcProdDev/Routes/index.jsx
index 8f6027cd7e..58b411ff20 100644
--- a/src/shared/routes/Communities/TcProdDev/Routes/index.jsx
+++ b/src/shared/routes/Communities/TcProdDev/Routes/index.jsx
@@ -16,7 +16,6 @@ import { ThemeProvider } from 'react-css-super-themr';
import Submission from 'routes/Submission';
import SubmissionManagement from 'routes/SubmissionManagement';
import TermsDetail from 'routes/TermsDetail';
-import Profile from 'routes/Profile';
import ProfileStats from 'routes/ProfileStats';
import { Route, Switch } from 'react-router-dom';
@@ -78,21 +77,6 @@ export default function TcProdDev({ base, meta }) {
exact
path={`${base}/challenges/:challengeId([\\w]{8}-[\\w]{4}-[\\w]{4}-[\\w]{4}-[\\w]{12}|\\d{5,8})/my-submissions`}
/>
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})/details`}
- />
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
}
exact
diff --git a/src/shared/routes/Communities/Veterans/Routes.jsx b/src/shared/routes/Communities/Veterans/Routes.jsx
index d3defe66c3..c15f932bc7 100644
--- a/src/shared/routes/Communities/Veterans/Routes.jsx
+++ b/src/shared/routes/Communities/Veterans/Routes.jsx
@@ -17,9 +17,7 @@ import React from 'react';
import Submission from 'routes/Submission';
import SubmissionManagement from 'routes/SubmissionManagement';
import TermsDetail from 'routes/TermsDetail';
-import Profile from 'routes/Profile';
import ProfileStats from 'routes/ProfileStats';
-import Settings from 'routes/Settings';
import { ThemeProvider } from 'react-css-super-themr';
import { Route, Switch } from 'react-router-dom';
import { BUCKETS, registerBucket } from 'utils/challenge-listing/buckets';
@@ -105,20 +103,11 @@ export default function Veterans({ base, member, meta }) {
exact
path={`${base}/challenges/terms/detail/:termId`}
/>
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
}
exact
path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})/details`}
/>
- }
- path={`${base}/settings`}
- />
}
exact
diff --git a/src/shared/routes/Communities/Wipro/Routes.jsx b/src/shared/routes/Communities/Wipro/Routes.jsx
index 18398703a5..ebdd6aec58 100644
--- a/src/shared/routes/Communities/Wipro/Routes.jsx
+++ b/src/shared/routes/Communities/Wipro/Routes.jsx
@@ -13,9 +13,7 @@ import React from 'react';
import Submission from 'routes/Submission';
import SubmissionManagement from 'routes/SubmissionManagement';
import TermsDetail from 'routes/TermsDetail';
-import Profile from 'routes/Profile';
import ProfileStats from 'routes/ProfileStats';
-import Settings from 'routes/Settings';
import Viewport from 'components/Contentful/Viewport';
import theme from 'components/tc-communities/communities/wipro/theme';
import { ThemeProvider } from 'react-css-super-themr';
@@ -71,34 +69,11 @@ export default function Wipro({ base, meta }) {
exact
path={`${base}/challenges/:challengeId([\\w]{8}-[\\w]{4}-[\\w]{4}-[\\w]{4}-[\\w]{12}|\\d{5,8})/my-submissions`}
/>
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
}
exact
path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})/details`}
/>
- }
- path={`${base}/settings`}
- />
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})/details`}
- />
- }
- path={`${base}/settings`}
- />
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})/details`}
- />
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
}
exact
diff --git a/src/shared/routes/Communities/iot/Routes.jsx b/src/shared/routes/Communities/iot/Routes.jsx
index aaf8166071..6da2ac0e14 100644
--- a/src/shared/routes/Communities/iot/Routes.jsx
+++ b/src/shared/routes/Communities/iot/Routes.jsx
@@ -18,7 +18,6 @@ import React from 'react';
import Submission from 'routes/Submission';
import SubmissionManagement from 'routes/SubmissionManagement';
import TermsDetail from 'routes/TermsDetail';
-import Profile from 'routes/Profile';
import ProfileStats from 'routes/ProfileStats';
import { Route, Switch } from 'react-router-dom';
import { ThemeProvider } from 'react-css-super-themr';
@@ -90,21 +89,6 @@ export default function IoT({ base, meta }) {
exact
path={`${base}/challenges/:challengeId([\\w]{8}-[\\w]{4}-[\\w]{4}-[\\w]{4}-[\\w]{12}|\\d{5,8})/my-submissions`}
/>
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})/details`}
- />
- }
- exact
- path={`${base}/members/:handle([\\w\\-\\[\\].{}]{2,15})`}
- />
}
exact
diff --git a/src/shared/routes/RedirectMemberSearch.jsx b/src/shared/routes/RedirectMemberSearch.jsx
new file mode 100644
index 0000000000..9efe6fa79c
--- /dev/null
+++ b/src/shared/routes/RedirectMemberSearch.jsx
@@ -0,0 +1,27 @@
+/**
+ * The loader of Profile webpack chunks.
+ */
+import React from 'react';
+import PT from 'prop-types';
+import { config } from 'topcoder-react-utils';
+import RedirectExternalUrlPage from '../components/RedirectExternalUrlPage';
+
+export default function RedirectMemberSearch(props) {
+ const {
+ location: {
+ search,
+ },
+ } = props;
+
+ return (
+
+ );
+}
+
+RedirectMemberSearch.propTypes = {
+ location: PT.shape({
+ search: PT.string,
+ }).isRequired,
+};
diff --git a/src/shared/routes/Topcoder/Routes.jsx b/src/shared/routes/Topcoder/Routes.jsx
index 707ca1d1d4..244f670302 100644
--- a/src/shared/routes/Topcoder/Routes.jsx
+++ b/src/shared/routes/Topcoder/Routes.jsx
@@ -32,7 +32,6 @@ import Settings from '../Settings';
import HallOfFame from '../HallOfFame';
import ProfileBadges from '../ProfileBadges';
import Scoreboard from '../tco/scoreboard';
-import MemberSearch from '../../containers/MemberSearch';
import './styles.scss';
@@ -186,11 +185,6 @@ export default function Topcoder() {
exact
path={`${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/:articleTitle`}
/>
-
)}
diff --git a/src/shared/routes/index.jsx b/src/shared/routes/index.jsx
index d5a831c24a..86932d06c0 100644
--- a/src/shared/routes/index.jsx
+++ b/src/shared/routes/index.jsx
@@ -30,6 +30,7 @@ import TimelineWall from './TimelineWall';
import PolicyPages from './PolicyPages';
import GigsPages from './GigsPages';
import ProfileRedirect from './ProfileRedirect';
+import RedirectMemberSearch from './RedirectMemberSearch';
import SettingRedirect from './Settings/SettingRedirect';
import './Topcoder/styles.scss';
@@ -43,21 +44,34 @@ function Routes({ communityId }) {
title="Topcoder"
/>
);
+
if (communityId) {
return (
-
- {metaTags}
- (
-
- )}
- communityId={communityId}
+
+
+
-
+
+ {metaTags}
+ (
+
+ )}
+ communityId={communityId}
+ />
+
+