mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
redirect non existent paths to live view (#11536)
This commit is contained in:
parent
3f171e7670
commit
63d81bef45
@ -20,7 +20,6 @@ const System = lazy(() => import("@/pages/System"));
|
|||||||
const Settings = lazy(() => import("@/pages/Settings"));
|
const Settings = lazy(() => import("@/pages/Settings"));
|
||||||
const UIPlayground = lazy(() => import("@/pages/UIPlayground"));
|
const UIPlayground = lazy(() => import("@/pages/UIPlayground"));
|
||||||
const Logs = lazy(() => import("@/pages/Logs"));
|
const Logs = lazy(() => import("@/pages/Logs"));
|
||||||
const NoMatch = lazy(() => import("@/pages/NoMatch"));
|
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
@ -52,7 +51,7 @@ function App() {
|
|||||||
<Route path="/config" element={<ConfigEditor />} />
|
<Route path="/config" element={<ConfigEditor />} />
|
||||||
<Route path="/logs" element={<Logs />} />
|
<Route path="/logs" element={<Logs />} />
|
||||||
<Route path="/playground" element={<UIPlayground />} />
|
<Route path="/playground" element={<UIPlayground />} />
|
||||||
<Route path="*" element={<NoMatch />} />
|
<Route path="*" element={<Redirect to="/" />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user