Skip to content

Commit 61a2a1d

Browse files
johnebgoodclaude
andcommitted
Add catch-all route to redirect unknown paths to login
Handles legacy URLs like /index.html?autoconnect=false that old cached safetoken pages may redirect to. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 21f38be commit 61a2a1d

9 files changed

Lines changed: 24 additions & 1 deletion

react-app/src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const router = createHashRouter([
3434
},
3535
{ path: '/cct', element: <CCTOverlay /> },
3636
{ path: '/viewer', element: <ViewerPage /> },
37+
{ path: '*', element: <Navigate to="/login" replace /> },
3738
]);
3839

3940
export default function App() {

webfront/assets/CCTOverlay-Df-LNxfl.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webfront/assets/LoginPage-D6aJgmaE.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webfront/assets/StreamerDashboard-B4_Scn4t.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webfront/assets/ViewerPage-DS2B9ZP6.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webfront/assets/VoiceSelect-W3PRU2z_.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)