We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6faac4 commit 4c98541Copy full SHA for 4c98541
CodeIgniter/Framework/core/Router.php
@@ -302,7 +302,7 @@ protected function _set_default_controller()
302
if (
303
$this->default_controller !== 'app'
304
&& $this->default_controller !== 'app/index'
305
- && str_contains($this->routes[$defaultController], 'prefix-route')
+ && str_contains($this->routes[$defaultController] ?? 'app', 'prefix-route')
306
) {
307
$baseUrl = $this->config->config['base_url'];
308
// Redirect to the set default_controller with the base_url
0 commit comments