Skip to content

Commit

Permalink
Keep also passed params
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jul 10, 2020
1 parent fcda7eb commit 85c52de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/View/Helper/HtmlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function linkReset($title, $url = null, array $options = []) {
if (is_array($url)) {
$url += ['prefix' => false, 'plugin' => false];
}

return parent::link($title, $url, $options);
}

Expand Down Expand Up @@ -96,7 +97,11 @@ public function linkComplete($title, $url = null, array $options = []) {
$url['?'] = [];
}
$url['?'] += $this->_View->getRequest()->getQuery();

$pass = $this->_View->getRequest()->getParam('pass');
$url = array_merge($url, $pass);
}

return parent::link($title, $url, $options);
}

Expand Down

0 comments on commit 85c52de

Please sign in to comment.