'Improved' Auto Router exception skips filter for 404 controller |
Okay, I got the situation.
As you said, when auto routing legacy is enabled, global filters are executed if the URI segment for the controller name is valid as a classname. It does not matter whether you useĀ 404 override or not. But as I wrote, if we navigate to http://localhost:8080/404, "404" is not a valid classname. So filters are not executed. I think this is a bug. At least they are not consistent. I created an issue: https://github.com/codeigniter4/CodeIgni...ssues/7205 I think controller filters should be executed only when the route exists. |
Messages In This Thread |
'Improved' Auto Router exception skips filter for 404 controller - by saddalim - 01-30-2023, 01:46 PM
RE: 'Improved' Auto Router exception skips filter for 404 controller - by kenjis - 01-30-2023, 08:49 PM
RE: 'Improved' Auto Router exception skips filter for 404 controller - by saddalim - 01-31-2023, 10:24 AM
RE: 'Improved' Auto Router exception skips filter for 404 controller - by kenjis - 01-31-2023, 05:00 PM
RE: 'Improved' Auto Router exception skips filter for 404 controller - by kenjis - 01-31-2023, 06:10 PM
RE: 'Improved' Auto Router exception skips filter for 404 controller - by kenjis - 01-31-2023, 06:21 PM
RE: 'Improved' Auto Router exception skips filter for 404 controller - by kenjis - 01-31-2023, 09:14 PM
RE: 'Improved' Auto Router exception skips filter for 404 controller - by saddalim - 02-01-2023, 06:24 AM
|