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
Because array_filter() gets the result array, the index is not updated. So pathinfo '/home/index'([0=>'', 1=>home, 2=>index]) gets [1=>home, 2=>index], there is no $segments[0]; Controller cannot be found, resulting in 404;
name: Bug report
about: Help us improve the framework by reporting bugs!
Describe the bug
When set uriProtocol = 'Pathinfo'
Close debug, got 404 error;
line 578 in Router.php
Because array_filter() gets the result array, the index is not updated. So pathinfo '/home/index'([0=>'', 1=>home, 2=>index]) gets [1=>home, 2=>index], there is no $segments[0]; Controller cannot be found, resulting in 404;
line 587 in Router.php
`
`
ErrorException
Undefined offset: 0
SYSTEMPATH/Router/Router.php at line 587
CodeIgniter 4 version
Codeigniter 4.0.0-beta.2
Affected module(s)
Router
Expected behavior, and steps to reproduce if appropriate
Context
The text was updated successfully, but these errors were encountered: