From b52cbaa24cfc6146d516d2a99d69a499448f9e0e Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Tue, 2 Jul 2024 12:50:33 -0300 Subject: [PATCH] Set session for ajax request. --- src/Controller/AjaxBlocksController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Controller/AjaxBlocksController.php b/src/Controller/AjaxBlocksController.php index 519ee7e..bd16b6b 100644 --- a/src/Controller/AjaxBlocksController.php +++ b/src/Controller/AjaxBlocksController.php @@ -135,6 +135,7 @@ class AjaxBlocksController extends ControllerBase { } $new_request = Request::create($path); + $new_request->setSession($request->getSession()); $request_stack = \Drupal::requestStack(); $processed = $this->pathProcessor->processInbound($new_request->getPathInfo(), $new_request);