diff --git a/web/src/router.tsx b/web/src/router.tsx index 933fbf1e..c74e1e29 100644 --- a/web/src/router.tsx +++ b/web/src/router.tsx @@ -240,7 +240,11 @@ export const routeTree = rootRoute.addChildren([ type RouterHistory = Parameters[0]['history'] export function createAppRouter(history?: RouterHistory) { - return createRouter({ routeTree, history }) + return createRouter({ + routeTree, + history, + scrollRestoration: true, + }) } export type AppRouter = ReturnType