fix: Recently published redirect

This commit is contained in:
Tom Moor
2021-01-31 13:01:56 -08:00
parent 7777cccf3b
commit ef6ce72cf5

View File

@@ -316,6 +316,9 @@ class CollectionScene extends React.Component<Props> {
showPin
/>
</Route>
<Route path={collectionUrl(collection.id, "recent")}>
<Redirect to={collectionUrl(collection.id, "published")} />
</Route>
<Route path={collectionUrl(collection.id, "published")}>
<PaginatedDocumentList
key="published"
@@ -352,9 +355,6 @@ class CollectionScene extends React.Component<Props> {
showPin
/>
</Route>
<Route>
<Redirect to={collectionUrl(collection.id)} />
</Route>
</Switch>
</>
)}