diff --git a/src/EventListener/AdminRouterSubscriber.php b/src/EventListener/AdminRouterSubscriber.php index ee9b094036..aca058c692 100644 --- a/src/EventListener/AdminRouterSubscriber.php +++ b/src/EventListener/AdminRouterSubscriber.php @@ -253,7 +253,7 @@ public function onKernelController(ControllerEvent $event): void */ private function getDashboardControllerFqcn(Request $request): ?string { - $controller = $request->attributes->get('_controller'); + $controller = $request->attributes->get(EA::DASHBOARD_CONTROLLER_FQCN) ?? $request->attributes->get('_controller'); $controllerFqcn = null; if (\is_string($controller)) {