1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix app body not being unloaded when leaving dashboard

This commit is contained in:
Bill Thornton 2023-09-24 03:40:16 -04:00
parent f28542fbfb
commit 73aa0f1962

View file

@ -34,21 +34,21 @@ const StableApp = () => (
{LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute)} {LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute)}
</Route> </Route>
{/* Ignore dashboard routes */}
{Object.entries(DASHBOARD_APP_PATHS).map(([ key, path ]) => (
<Route
key={key}
path={`/${path}/*`}
element={null}
/>
))}
{/* Suppress warnings for unhandled routes */} {/* Suppress warnings for unhandled routes */}
<Route path='*' element={null} /> <Route path='*' element={null} />
</Route> </Route>
{/* Redirects for old paths */} {/* Redirects for old paths */}
{REDIRECTS.map(toRedirectRoute)} {REDIRECTS.map(toRedirectRoute)}
{/* Ignore dashboard routes */}
{Object.entries(DASHBOARD_APP_PATHS).map(([ key, path ]) => (
<Route
key={key}
path={`/${path}/*`}
element={null}
/>
))}
</Routes> </Routes>
); );