From 5db25f3ac1b0d4fe1da992ef8769ec0aeb673cbc Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Fri, 2 Jan 2026 21:45:21 +0100 Subject: [PATCH] fix: Redirect /board/:slug URLs to clean /:slug/ URLs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Old links like jeffemmett.com/board/ccc now redirect to /ccc/ - Both /board/:slug and /board/:slug/ redirect to clean URLs - Boards served directly at /:slug/ without /board prefix 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/App.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 347433a..e473af5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -112,11 +112,11 @@ const OptionalAuthRoute = ({ children }: { children: React.ReactNode }) => { }; /** - * Component to redirect board URLs without trailing slashes + * Component to redirect old /board/:slug URLs to clean /:slug/ URLs */ const RedirectBoardSlug = () => { const { slug } = useParams<{ slug: string }>(); - return ; + return ; }; @@ -181,11 +181,7 @@ const AppWithProviders = () => { } /> - - - - } /> + } />