'Improved' Auto Router exception skips filter for 404 controller |
Thanks for your help!
I uploaded a minimal demo for the issue: https://github.com/Saddalim/ci4_autoroute_filter IRL, we would need the results of MagicFilter::before in Home::error404. Please ignore the ugly static, it's for the easy demo... If you try to load a nonexisting controller, you'll see that the filter runs with the legacy router, but if you switch $autoRoutesImproved to true, it does not. As a quick workaround in the original app, I moved functionality of the filter to a library class and called it from both the filter and and 404 error handler method (or alternatively I could have used a trait I believe), but I would prefer a less smelly solution. |
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
|