diff --git a/system/Commands/Utilities/Routes/AutoRouterImproved/ControllerMethodReader.php b/system/Commands/Utilities/Routes/AutoRouterImproved/ControllerMethodReader.php index d2e54fa54462..4e15b2226a53 100644 --- a/system/Commands/Utilities/Routes/AutoRouterImproved/ControllerMethodReader.php +++ b/system/Commands/Utilities/Routes/AutoRouterImproved/ControllerMethodReader.php @@ -94,7 +94,7 @@ public function read(string $class, string $defaultController = 'Home', string $ } // Skip the default controller. - if (class_basename($class) === $defaultController) { + if ($classShortname === $defaultController) { continue; }