helpers/url: overwrite existing params
This commit is contained in:
parent
315c2a6e51
commit
596800bd7d
|
@ -22,7 +22,7 @@ $this->addHelperFunction('url', function ($path = null, $params = null) {
|
|||
$url = Url::fromPath($path);
|
||||
}
|
||||
if ($params !== null) {
|
||||
$url->setParams($params);
|
||||
$url->overwriteParams($params);
|
||||
}
|
||||
|
||||
return $url;
|
||||
|
|
Loading…
Reference in New Issue