Skip to content

Commit 4e5b55b

Browse files
issue 1022. fix missing _route on live components batch requests
1 parent f26124c commit 4e5b55b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LiveComponent/src/Controller/BatchActionController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function __invoke(Request $request, MountedComponent $_mounted_component,
3838
'_component_action_args' => $action['args'] ?? [],
3939
'_mounted_component' => $_mounted_component,
4040
'_live_component' => $serviceId,
41+
'_route' => $request->attributes->get('_route'),
4142
]);
4243

4344
$response = $this->kernel->handle($subRequest, HttpKernelInterface::SUB_REQUEST, false);

0 commit comments

Comments
 (0)