helpers/url: overwrite existing params

This commit is contained in:
Thomas Gelf 2014-09-05 17:56:55 +02:00
parent 315c2a6e51
commit 596800bd7d

View File

@ -22,7 +22,7 @@ $this->addHelperFunction('url', function ($path = null, $params = null) {
$url = Url::fromPath($path); $url = Url::fromPath($path);
} }
if ($params !== null) { if ($params !== null) {
$url->setParams($params); $url->overwriteParams($params);
} }
return $url; return $url;