Ignore action URL parameter for tile links

Else every tile opens with the action for the current tile.
This commit is contained in:
Eric Lippmann 2018-08-15 09:40:17 +02:00
parent 1c0e9f5bd4
commit c4ee09d567

View file

@ -219,13 +219,14 @@ abstract class Renderer extends Html
public function setUrl(Url $url)
{
$this->url = $url->without(array(
'action',
'deletenode',
'deleteparent',
'editnode',
'simulationnode',
'view'
));
$this->setBaseUrl($url);
$this->setBaseUrl($this->url);
return $this;
}
@ -233,9 +234,9 @@ abstract class Renderer extends Html
* @param Url $url
* @return $this
*/
public function setBaseUrl(Url $url)
protected function setBaseUrl(Url $url)
{
$this->baseUrl = $url->without(array('node', 'path', 'view'));
$this->baseUrl = $url->without(array('node', 'path'));
return $this;
}