![]() |
Yeah! I found it! It seems like a bug. There is a conflict of custom names and URI paths.
I have URI "edit" and named URI "edit/(:num)" as "edit". So, name "edit" and the path "edit" intersects. These names and paths are keys of array of all routes so keys must be unique but its don't! File: system/Router/Router.php Method: checkRoutes https://github.com/codeigniter4/CodeIgni...r.php#L407 I've created a pull request to try and fix this https://github.com/codeigniter4/CodeIgniter4/pull/9499 |
Messages In This Thread |
Routing Issue: Optional ID and Named Routes in CodeIgniter 4 - by Elias - 03-26-2025, 04:18 AM
RE: Routing Issue: Optional ID and Named Routes in CodeIgniter 4 - by luckmoshy - 03-26-2025, 07:02 AM
RE: Routing Issue: Optional ID and Named Routes in CodeIgniter 4 - by Elias - 03-26-2025, 12:33 PM
RE: Routing Issue: Optional ID and Named Routes in CodeIgniter 4 - by ozornick - 03-26-2025, 08:55 PM
RE: Routing Issue: Optional ID and Named Routes in CodeIgniter 4 - by Elias - 03-27-2025, 11:49 AM
|