From 26f4a11813b49918d13e8d3887fa86273b2352da Mon Sep 17 00:00:00 2001 From: mscherer Date: Sun, 12 Jul 2020 14:42:17 +0200 Subject: [PATCH] Fix completeArray() for pass params. --- src/View/Helper/UrlHelper.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/View/Helper/UrlHelper.php b/src/View/Helper/UrlHelper.php index 3c6d1dadd..689ecaa45 100644 --- a/src/View/Helper/UrlHelper.php +++ b/src/View/Helper/UrlHelper.php @@ -41,6 +41,7 @@ public function resetArray(array $url) { */ public function completeArray(array $url) { $url = $this->addQueryStrings($url); + $url = $this->addPassed($url); return $url; } @@ -104,4 +105,16 @@ protected function addQueryStrings(array $url) { return $url; } + /** + * @param array $url + * + * @return array + */ + protected function addPassed(array $url) { + $pass = $this->_View->getRequest()->getParam('pass'); + $url = array_merge($url, $pass); + + return $url; + } + }