diff --git a/packages/frontend/src/App.svelte b/packages/frontend/src/App.svelte index 58ef74a43..33d0d0435 100644 --- a/packages/frontend/src/App.svelte +++ b/packages/frontend/src/App.svelte @@ -11,13 +11,24 @@ import Preferences from '/@/pages/Preferences.svelte'; import Registries from '/@/pages/Registries.svelte'; import Models from '/@/pages/Models.svelte'; import Recipe from '/@/pages/Recipe.svelte'; - import Model from './pages/Model.svelte'; +import Model from './pages/Model.svelte'; +import { onMount } from 'svelte'; +import { getRouterState } from '/@/utils/client'; router.mode.hash(); + +let isMounted = false; + +onMount(() => { + // Load router state on application startup + const state = getRouterState(); + router.goto(state.url); + isMounted = true; +}); - +
diff --git a/packages/frontend/src/Route.svelte b/packages/frontend/src/Route.svelte index 09f5dcbc9..c45d45c14 100644 --- a/packages/frontend/src/Route.svelte +++ b/packages/frontend/src/Route.svelte @@ -1,6 +1,7 @@