Skip to content

Commit

Permalink
Fix a few more old "create" links
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed Oct 4, 2024
1 parent 29b925a commit 26ad4ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ export const Routes: React.FunctionComponent<{}> = (props) => {
<ThemeForLocation browserTabTitle={location.pathname}>
<Switch>
{/* The "resources" section used to be "create", and all the urls were different.
These first four routes ensure that old links will go to the right place. */}
These first few routes ensure that old links will go to the right place.
In hindsight, maybe we should have done this with some kind of rule in Cloudflare.
But I think that would have come with its own headaches. */}
<Redirect // e.g. /page/create/page/bloompub-viewer
from={"/:before/create/:after/:after2"}
to="/:before/resources/:after/:after2"
/>
<Redirect
from={"/:before/create/:after"}
to="/:before/resources/:after"
Expand Down

0 comments on commit 26ad4ec

Please sign in to comment.