Hello,
I am using Demo 2 of metronic, the react one. I am really struggling on removing the login page when we visit the website for the first time:
https://i.ibb.co/WyZNLPJ/login.png
How can i disable the authentification step. I just want the website to directly redirect to home page.
I tried to set the constant isAuthorized of the src/app/Routes.js to true but it doesn't change anything:
https://i.ibb.co/y5zJqYf/routes.png
Thank you
Hi,
You can achieve this by updating file react/demo1/src/app/routing/Routes.tsx.
Replace the component content to:
<>
<Switch>
<Route path="/error" component={ErrorsPage} />
<Route path="/logout" component={Logout} />
<>
<MasterLayout>
<PrivateRoutes />
</MasterLayout>
</>
</Switch>
<MasterInit />
</>