-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom routes without auth doesn't work after add permissions to resources #4821
Comments
I believe that's because your route contains the string '/login'. Try using a route path without that string. |
but still the same issue happens So i have check the window.location.hash is related to non-auth route then i have resolved the promise It's better if there's a way to define non auth routes like login page |
React-admin should not call Anyway, since the problem is solved on your side, I'm closing this issue. |
@fzaninotto i guess no because it was working well until i add the permission to resources |
Hi there, I am having the same issue, custom pages are protected by auth provider, i couldn't proceed to other pages without log in, also after configuring getPermission method in authProvider |
If somebody has this problem in 2024, the issue could be how you link your custom pages. As stated in the documentation, you have to link your custom pages using react-router’s Link component.
|
What you were expecting:
I have few custom routes for forget password and reset password after i update permissions for the resources iam expecting those two pages are working as before
What happened instead:
once i click on forget pwd link it will redirect to the login page
Steps to reproduce:
Related code:

The text was updated successfully, but these errors were encountered: