Add Custom 404 to allow navigating back to login
This commit is contained in:
parent
96c4d7e903
commit
d0b1addc6f
2 changed files with 68 additions and 0 deletions
|
@ -26,6 +26,7 @@ import ThingsHistory from '../views/Things/ThingsHistory'
|
|||
import ThingsView from '../views/Things/ThingsView'
|
||||
import UserActivities from '../views/User/UserActivities'
|
||||
import UserPoints from '../views/User/UserPoints'
|
||||
import NotFound from '../views/components/NotFound'
|
||||
const getMainRoute = () => {
|
||||
if (
|
||||
import.meta.env.VITE_IS_LANDING_DEFAULT === 'true' &&
|
||||
|
@ -145,6 +146,10 @@ const Router = createBrowserRouter([
|
|||
path: 'labels/',
|
||||
element: <LabelView />,
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
element: <NotFound />,
|
||||
},
|
||||
],
|
||||
},
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue