From 48c1ec8afdb7d4d5b4f6e67e623926c884034776 Mon Sep 17 00:00:00 2001 From: Zane <75694352+zanesq@users.noreply.github.com> Date: Fri, 8 Aug 2025 10:37:09 -0700 Subject: [PATCH] remove fallback routing to hub/home for unknown routes (#3954) --- ui/desktop/src/App.tsx | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/ui/desktop/src/App.tsx b/ui/desktop/src/App.tsx index 49f1d9f4..2fc1173d 100644 --- a/ui/desktop/src/App.tsx +++ b/ui/desktop/src/App.tsx @@ -958,28 +958,6 @@ export default function App() { console.log( 'Ignoring recipe config changes to prevent navigation conflicts with new window creation' ); - } else { - // Only navigate to chat route if we're not already on a valid route - const currentHash = window.location.hash; - const validRoutes = [ - '#/', - '#/pair', - '#/settings', - '#/sessions', - '#/schedules', - '#/recipes', - '#/permission', - '#/configure-providers', - '#/shared-session', - '#/recipe-editor', - '#/extensions', - ]; - - if (!validRoutes.includes(currentHash)) { - console.log('No valid route detected, navigating to chat route (hub)'); - window.location.hash = '#/'; - window.history.replaceState({}, '', '#/'); - } } } catch (error) { console.error('Error in system initialization:', error);