How do I remove/bypass the login and auth page and go directly to the homepage?
Hi,
In file src/app/routing/AppRoutes.tsx you can remove the authentication code.
The final component without authentication should look like this:
const AppRoutes: FC = () => {
return (
<BrowserRouter basename={PUBLIC_URL}>
<Routes>
<Route element={<App />}>
<Route path="error/*" element={<ErrorsPage />} />
<Route path="/*" element={<PrivateRoutes />} />
<Route index element={<Navigate to="/dashboard" />} />
</Route>
</Routes>
</BrowserRouter>
)
}
Not a great sign when metronic folk send out bad code like this. Makes it feel we chose the wrong dependency in metronic. Plugging that into any code editor will show the results and ultimately what this breaks. NOW on the other hand had this code been correct and formatted this would have been PURE GOLD. Instead it reflects poorly on metronic.