progressive-amaranthP
Refine3y ago
4 replies
progressive-amaranth

redirect issue

as soon as the page loads on the screen it should be redirected to the login page. I have made the login page, but it is not redirecting to the login page by default.

can anyone provide any guidance and help me in this?


<Route
element={
<Authenticated fallback={<Outlet />}>
<NavigateToResource resource="categories" />
</Authenticated>
}
>
<Route path="/login" element={<Login />} />
<Route path="/register" element={<Register />} />
</Route>
<Route path="*" element={<ErrorComponent />} />
</Routes>
Was this page helpful?