-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add warning to documentation about checking for authenticated users in shouldRegisterNavigation
and canAccess
methods
#14609
base: 3.x
Are you sure you want to change the base?
Conversation
Instead, is it feasible to avoid calling the |
It's currently called in by Since there is always a chance that the page that defines |
Maybe its best to always redirect to the login page instead of the panel URL? Wdyt should be the default behaviour on logout? |
Ah, I see we only actually call |
I have pushed up some changes to the logic, what do you think? If you like them, we can revert the docs changes |
That definitely solves the issue with the The only other note is the redirect logic here is a minor breaking change in situations where someone has defined a "first" page that is different from the base path of the panel. (i.e. the first page in the navigation is |
For guest access, would visiting |
Description
See readme for https://github.com/coleshirley/filament-logout-bug and this filament discord report: https://discord.com/channels/883083792112300104/1272884452254810163
Visual changes
none
Functional changes
composer cs
command.