Skip to content

Commit

Permalink
Merge pull request #3893 from JoinColony/fix/reserved-colony-names
Browse files Browse the repository at this point in the history
fix: reserved colony names
  • Loading branch information
rdig authored Dec 10, 2024
2 parents e1dbfe4 + e8e2ac6 commit 4944487
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/routes/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,12 @@ const Routes = () => {
/>

{/* If a reserved route has not been used by this point, redirect to NotFoundRoute */}
{[...RESERVED_ROUTES].map((route) => (
<Route path={route} element={<NotFoundRoute />} />
))}
{[...RESERVED_ROUTES]
// Allow in use colony names
.filter((route) => !['/meta', '/beta'].includes(route))
.map((route) => (
<Route path={route} element={<NotFoundRoute />} />
))}

{/* Colony routes */}
<Route path={COLONY_HOME_ROUTE} element={<ColonyRoute />}>
Expand Down

0 comments on commit 4944487

Please sign in to comment.