Fix file route resolution to restor file switching (#1768)
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
This commit is contained in:
@ -59,6 +59,7 @@ const router = createBrowserRouter([
|
|||||||
{
|
{
|
||||||
loader: fileLoader,
|
loader: fileLoader,
|
||||||
id: paths.FILE,
|
id: paths.FILE,
|
||||||
|
path: paths.FILE + '/:id',
|
||||||
element: (
|
element: (
|
||||||
<Auth>
|
<Auth>
|
||||||
<FileMachineProvider>
|
<FileMachineProvider>
|
||||||
@ -74,8 +75,11 @@ const router = createBrowserRouter([
|
|||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: paths.FILE + '/:id',
|
|
||||||
loader: onboardingRedirectLoader,
|
loader: onboardingRedirectLoader,
|
||||||
|
index: true,
|
||||||
|
element: <></>,
|
||||||
|
},
|
||||||
|
{
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: makeUrlPathRelative(paths.SETTINGS),
|
path: makeUrlPathRelative(paths.SETTINGS),
|
||||||
|
Reference in New Issue
Block a user