You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filters are very literal matches. If you have admin/* it will NOT match admin because there is no trailing slash on URI segments. Try changing your filter to apply to admin* and let me know if that fixes it.
Describe the bug
Filters do not intercept default controllers and methods .
CodeIgniter 4 version
4.1.1
code
Config/Filter.php :
public $filters = ['isLoggedIn' => ['before' => ['admin/*']]];
If I visit xxxx.com/admin , the filter will not intercept. Default page xxxx.com/admin/home/index Will be accessed.
Context
The text was updated successfully, but these errors were encountered: