mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 05:08:59 +08:00
fix: handle 404 redirection on root route (#7454)
* fix: handle 404 redirection on root route * fix: add home component for root route --------- Co-authored-by: Aditya Singh <adityasingh@Adityas-MacBook-Pro.local>
This commit is contained in:
parent
0b7cd4c1a7
commit
61de2d414d
@ -26,6 +26,7 @@ import { Route, Router, Switch } from 'react-router-dom';
|
||||
import { CompatRouter } from 'react-router-dom-v5-compat';
|
||||
import { extractDomain } from 'utils/app';
|
||||
|
||||
import { Home } from './pageComponents';
|
||||
import PrivateRoute from './Private';
|
||||
import defaultRoutes, {
|
||||
AppRoutes,
|
||||
@ -310,6 +311,7 @@ function App(): JSX.Element {
|
||||
/>
|
||||
))}
|
||||
|
||||
<Route exact path="/" component={Home} />
|
||||
<Route path="*" component={NotFound} />
|
||||
</Switch>
|
||||
</Suspense>
|
||||
|
Loading…
x
Reference in New Issue
Block a user