From 1e02d2025c7c8c586d696b289394a96a0536304a Mon Sep 17 00:00:00 2001 From: JiaJia Ji Date: Tue, 18 Jul 2023 10:45:36 +0200 Subject: [PATCH] Update PimcoreUrl.php (#523) Co-authored-by: Elmar Putz --- src/Website/Tool/PimcoreUrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Website/Tool/PimcoreUrl.php b/src/Website/Tool/PimcoreUrl.php index 9bad0d36..d4eb2ed0 100644 --- a/src/Website/Tool/PimcoreUrl.php +++ b/src/Website/Tool/PimcoreUrl.php @@ -30,7 +30,7 @@ public function __invoke(array $urlOptions = [], $name = null, $reset = false, $ { // merge all parameters from request to parameters if (!$reset && $this->requestHelper->hasMainRequest()) { - $urlOptions = array_replace($this->requestHelper->getMainRequest()->attributes->get('_route_params'), $urlOptions); + $urlOptions = array_replace($this->requestHelper->getMainRequest()->attributes->get('_route_params', []), $urlOptions); } return parent::__invoke($urlOptions, $name, $reset, $encode, $relative);