Skip to content

Commit

Permalink
redirect non existent paths to live view
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed May 26, 2024
1 parent 3f171e7 commit a87a257
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit a87a257

Please sign in to comment.