Browse Source

Fix completeArray() for pass params.

mscherer 5 years ago
parent
commit
26f4a11813
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/View/Helper/UrlHelper.php

+ 13 - 0
src/View/Helper/UrlHelper.php

@@ -41,6 +41,7 @@ class UrlHelper extends CoreUrlHelper {
 	 */
 	public function completeArray(array $url) {
 		$url = $this->addQueryStrings($url);
+		$url = $this->addPassed($url);
 
 		return $url;
 	}
@@ -104,4 +105,16 @@ class UrlHelper extends CoreUrlHelper {
 		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;
+	}
+
 }