redirect non existent paths to live view (#11536)

This commit is contained in:
Josh Hawkins 2024-05-26 11:17:52 -05:00 committed by GitHub
parent 3f171e7670
commit 63d81bef45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>