From 4e5b55bfc91c64e9e1693f208c945d3b9fca1f84 Mon Sep 17 00:00:00 2001 From: Andres Sanz Date: Fri, 23 May 2025 16:35:45 +0200 Subject: [PATCH] issue 1022. fix missing _route on live components batch requests --- src/LiveComponent/src/Controller/BatchActionController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LiveComponent/src/Controller/BatchActionController.php b/src/LiveComponent/src/Controller/BatchActionController.php index 2b1bc7aa5b6..3548ee6e5e2 100644 --- a/src/LiveComponent/src/Controller/BatchActionController.php +++ b/src/LiveComponent/src/Controller/BatchActionController.php @@ -38,6 +38,7 @@ public function __invoke(Request $request, MountedComponent $_mounted_component, '_component_action_args' => $action['args'] ?? [], '_mounted_component' => $_mounted_component, '_live_component' => $serviceId, + '_route' => $request->attributes->get('_route'), ]); $response = $this->kernel->handle($subRequest, HttpKernelInterface::SUB_REQUEST, false);