浏览代码

Fix completeArray() for pass params.

mscherer 5 年之前
父节点
当前提交
26f4a11813
共有 1 个文件被更改,包括 13 次插入0 次删除
  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;
+	}
+
 }