From 03a150aa16fafe6a45e8b97a798a801c4f59dae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 1 Oct 2024 16:03:11 +0200 Subject: [PATCH] Fix ChillUrlGenerator: merge parameters correctly --- src/Bundle/ChillMainBundle/Routing/ChillUrlGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Routing/ChillUrlGenerator.php b/src/Bundle/ChillMainBundle/Routing/ChillUrlGenerator.php index eaecee628..f88ac0c8a 100644 --- a/src/Bundle/ChillMainBundle/Routing/ChillUrlGenerator.php +++ b/src/Bundle/ChillMainBundle/Routing/ChillUrlGenerator.php @@ -27,7 +27,7 @@ final readonly class ChillUrlGenerator implements ChillUrlGeneratorInterface { $uri = $this->requestStack->getCurrentRequest()->getRequestUri(); - return $this->urlGenerator->generate($name, [$parameters, 'returnPath' => $uri], $referenceType); + return $this->urlGenerator->generate($name, [...$parameters, 'returnPath' => $uri], $referenceType); } public function returnPathOr(string $name, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH): string