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,
 | 
			
		||||
        id: paths.FILE,
 | 
			
		||||
        path: paths.FILE + '/:id',
 | 
			
		||||
        element: (
 | 
			
		||||
          <Auth>
 | 
			
		||||
            <FileMachineProvider>
 | 
			
		||||
@ -74,8 +75,11 @@ const router = createBrowserRouter([
 | 
			
		||||
        ),
 | 
			
		||||
        children: [
 | 
			
		||||
          {
 | 
			
		||||
            path: paths.FILE + '/:id',
 | 
			
		||||
            loader: onboardingRedirectLoader,
 | 
			
		||||
            index: true,
 | 
			
		||||
            element: <></>,
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            children: [
 | 
			
		||||
              {
 | 
			
		||||
                path: makeUrlPathRelative(paths.SETTINGS),
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user