I am generating urls in the view to get to an action on the specific entity via:
$link = $this->url(
array(
'action' => 'action',
'controller' => 'controller',
'module' => 'module',
'id' => 'id'
),
'default'
);
$this->backUrlAppend($link);
However when I decide to abort the action and return back to search the id parameter is not stripped away an causing trouble latter on:
$link = $this->url(
array(
'action' => 'search',
'controller' => 'controller',
'module' => 'module'
),
'default'
);
$this->backUrlAppend($link);
Return url: /controller/search/id/5?backUrl=%2Fcontroller%2Faction%2Fid%2F5
How can I force the view to do not add the id param?