Skip to content

NVR with realtime local object detection for IP cameras

redirect non existent paths to live view (#11536)

Josh Hawkins63d81bef45bf
diff --git a/web/src/App.tsx b/web/src/App.tsx
index c4bdab9f25..24ec6d84d1 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -20,7 +20,6 @@ const System = lazy(() => import("@/pages/System"));
const Settings = lazy(() => import("@/pages/Settings"));
const UIPlayground = lazy(() => import("@/pages/UIPlayground"));
const Logs = lazy(() => import("@/pages/Logs"));
-const NoMatch = lazy(() => import("@/pages/NoMatch"));
function App() {
return (
@@ -52,7 +51,7 @@ function App() {
<Route path="/config" element={<ConfigEditor />} />
<Route path="/logs" element={<Logs />} />
<Route path="/playground" element={<UIPlayground />} />
- <Route path="*" element={<NoMatch />} />
+ <Route path="*" element={<Redirect to="/" />} />
</Routes>
</Suspense>
</div>