Get rid of 'content not found' page in categories
This commit is contained in:
parent
f56e552764
commit
2b60fe957f
1 changed files with 108 additions and 98 deletions
|
@ -305,6 +305,7 @@ function AppRouter(props: Props) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Suspense fallback={<LoadingBarOneOff />}>
|
<React.Suspense fallback={<LoadingBarOneOff />}>
|
||||||
|
{categoryPages.length && (
|
||||||
<Switch>
|
<Switch>
|
||||||
<Redirect
|
<Redirect
|
||||||
from={`/$/${PAGES.DEPRECATED__CHANNELS_FOLLOWING_MANAGE}`}
|
from={`/$/${PAGES.DEPRECATED__CHANNELS_FOLLOWING_MANAGE}`}
|
||||||
|
@ -407,12 +408,21 @@ function AppRouter(props: Props) {
|
||||||
<Route path={`/$/${PAGES.EMBED}/:claimName/:claimId`} exact component={EmbedWrapperPage} />
|
<Route path={`/$/${PAGES.EMBED}/:claimName/:claimId`} exact component={EmbedWrapperPage} />
|
||||||
|
|
||||||
{/* Below need to go at the end to make sure we don't match any of our pages first */}
|
{/* Below need to go at the end to make sure we don't match any of our pages first */}
|
||||||
<Route path={`/$/${PAGES.LATEST}/:channelName`} exact render={() => <ShowPage uri={uri} latestContentPath />} />
|
<Route
|
||||||
<Route path={`/$/${PAGES.LIVE_NOW}/:channelName`} exact render={() => <ShowPage uri={uri} liveContentPath />} />
|
path={`/$/${PAGES.LATEST}/:channelName`}
|
||||||
|
exact
|
||||||
|
render={() => <ShowPage uri={uri} latestContentPath />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path={`/$/${PAGES.LIVE_NOW}/:channelName`}
|
||||||
|
exact
|
||||||
|
render={() => <ShowPage uri={uri} liveContentPath />}
|
||||||
|
/>
|
||||||
<Route path="/:claimName" exact render={() => <ShowPage uri={uri} />} />
|
<Route path="/:claimName" exact render={() => <ShowPage uri={uri} />} />
|
||||||
<Route path="/:claimName/:streamName" exact render={() => <ShowPage uri={uri} />} />
|
<Route path="/:claimName/:streamName" exact render={() => <ShowPage uri={uri} />} />
|
||||||
<Route path="/*" component={FourOhFourPage} />
|
<Route path="/*" component={FourOhFourPage} />
|
||||||
</Switch>
|
</Switch>
|
||||||
|
)}
|
||||||
</React.Suspense>
|
</React.Suspense>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue