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