diff --git a/src/App.tsx b/src/App.tsx index e2b7c6e..21ded6a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -28,6 +28,9 @@ import { ErrorBoundary } from './components/ErrorBoundary'; import CryptID from './components/auth/CryptID'; import CryptoDebug from './components/auth/CryptoDebug'; +// Import Web3 provider for wallet integration +import { Web3Provider } from './providers/Web3Provider'; + // Import Google Data test component import { GoogleDataTest } from './components/GoogleDataTest'; @@ -116,6 +119,15 @@ const RedirectBoardSlug = () => { return ; }; +/** + * Component to redirect direct slug URLs to board URLs + * Handles canvas.jeffemmett.com/ccc → /board/ccc/ + */ +const RedirectDirectSlug = () => { + const { slug } = useParams<{ slug: string }>(); + return ; +}; + /** * Main App with context providers */ @@ -142,11 +154,12 @@ const AppWithProviders = () => { return ( - - - }> - - + + + + }> + + {/* Display notifications */} @@ -209,13 +222,20 @@ const AppWithProviders = () => { {/* Google Data routes */} } /> } /> + + {/* Catch-all: Direct slug URLs redirect to board URLs */} + {/* e.g., canvas.jeffemmett.com/ccc → /board/ccc/ */} + {/* Must be LAST to not interfere with other routes */} + } /> + } /> - - - - - + + + + + + );