fix(ui): restore startup project context

This commit is contained in:
DhanushSantosh
2026-01-11 21:58:36 +05:30
parent 785a4d2c3b
commit d724e782dd
5 changed files with 98 additions and 41 deletions

View File

@@ -3,9 +3,10 @@ import { routeTree } from '../routeTree.gen';
// Use browser history in web mode (for e2e tests and dev), memory history in Electron
const isElectron = typeof window !== 'undefined' && window.electronAPI !== undefined;
const BOARD_ROUTE_PATH = '/board';
const history = isElectron
? createMemoryHistory({ initialEntries: [window.location.pathname || '/'] })
? createMemoryHistory({ initialEntries: [BOARD_ROUTE_PATH] })
: createBrowserHistory();
export const router = createRouter({