From 74623708bedbab521ba0b36d2d30bf77b1e14c5b Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Tue, 19 Mar 2024 17:45:54 -0400 Subject: [PATCH] Fix file route resolution to restor file switching --- src/Router.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Router.tsx b/src/Router.tsx index faf638d9e5..b9a4e358c3 100644 --- a/src/Router.tsx +++ b/src/Router.tsx @@ -59,6 +59,7 @@ const router = createBrowserRouter([ { loader: fileLoader, id: paths.FILE, + path: paths.FILE + '/:id', element: ( @@ -74,8 +75,11 @@ const router = createBrowserRouter([ ), children: [ { - path: paths.FILE + '/:id', loader: onboardingRedirectLoader, + index: true, + element: <>, + }, + { children: [ { path: makeUrlPathRelative(paths.SETTINGS),