Skip to content

Commit

Permalink
Update PimcoreUrl.php (#523)
Browse files Browse the repository at this point in the history
Co-authored-by: Elmar Putz <[email protected]>
  • Loading branch information
kingjia90 and elmarputz authored Jul 18, 2023
1 parent 123386a commit 1e02d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Website/Tool/PimcoreUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e02d20

Please sign in to comment.