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,6 +34,13 @@ const StableApp = () => (
{LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute)} {LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute)}
</Route> </Route>
{/* Suppress warnings for unhandled routes */}
<Route path='*' element={null} />
</Route>
{/* Redirects for old paths */}
{REDIRECTS.map(toRedirectRoute)}
{/* Ignore dashboard routes */} {/* Ignore dashboard routes */}
{Object.entries(DASHBOARD_APP_PATHS).map(([ key, path ]) => ( {Object.entries(DASHBOARD_APP_PATHS).map(([ key, path ]) => (
<Route <Route
@ -42,13 +49,6 @@ const StableApp = () => (
element={null} element={null}
/> />
))} ))}
{/* Suppress warnings for unhandled routes */}
<Route path='*' element={null} />
</Route>
{/* Redirects for old paths */}
{REDIRECTS.map(toRedirectRoute)}
</Routes> </Routes>
); );