mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix ConnectionRequired missing for public routes
This commit is contained in:
parent
6f670d5c3e
commit
9c16515549
4 changed files with 46 additions and 32 deletions
|
@ -16,9 +16,11 @@ export const EXPERIMENTAL_APP_ROUTES: RouteObject[] = [
|
|||
path: '/*',
|
||||
lazy: () => import('../AppLayout'),
|
||||
children: [
|
||||
{ index: true, element: <Navigate replace to='/home.html' /> },
|
||||
|
||||
{
|
||||
/* User routes: Any child route of this layout is authenticated */
|
||||
element: <ConnectionRequired isUserRequired />,
|
||||
/* User routes */
|
||||
Component: ConnectionRequired,
|
||||
children: [
|
||||
...ASYNC_USER_ROUTES.map(toAsyncPageRoute),
|
||||
...LEGACY_USER_ROUTES.map(toViewManagerPageRoute),
|
||||
|
@ -26,21 +28,26 @@ export const EXPERIMENTAL_APP_ROUTES: RouteObject[] = [
|
|||
// The video page is special since it combines new controls with the legacy view
|
||||
{
|
||||
path: 'video',
|
||||
element: <VideoPage />
|
||||
Component: VideoPage
|
||||
}
|
||||
],
|
||||
ErrorBoundary
|
||||
},
|
||||
|
||||
/* Public routes */
|
||||
{ index: true, element: <Navigate replace to='/home.html' /> },
|
||||
...LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute),
|
||||
|
||||
/* Fallback route for invalid paths */
|
||||
{
|
||||
path: '*',
|
||||
Component: FallbackRoute
|
||||
/* Public routes */
|
||||
element: <ConnectionRequired isUserRequired={false} />,
|
||||
children: [
|
||||
...LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute),
|
||||
|
||||
/* Fallback route for invalid paths */
|
||||
{
|
||||
path: '*',
|
||||
Component: FallbackRoute
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue