Not sure if this is what you mean, but you can set the third parameter,
$reset, to true:
$this->_helper->Redirector->gotoRoute(array(), 'features', true);
That will build the route "from scratch" so to speak.
Nogyara wrote:
>
> Hi guys,
> having this route definition:
>
> $oRoute = new Zend_Controller_Router_Route
> (
> 'features/:controller/:action/*',
> array('action' => 'list')
> );
> $oRouter->addRoute('features', $oRoute);
>
> I tried couple of things, however, I can't get rid of the 'paramaters
> part' of the URL after redirection, so result after redirection looks like
> features/types/list/id/X/.
> After successful validation of a form in one of controllers
> (features/types/edit/id/X), I'd like to be redirected ideally back to
> features/types/ (or to features/types/list/ - list is default action -
> when the previous is impossible).
> Any ideas how to get rid of these parameters, pls? And Is there a way how
> skip setting the initial action (list) when redirecting? OR is something
> wrong with the route? Sorry if it's a newbie question, I'm quite new to
> ZF.
> Thanks for help
>
--
View this message in context:
http://www.nabble.com/Remove-trailing-parameters-when-using-Redirector-Helper--tp14339813s16154p14339823.html
Sent from the Zend Framework mailing list archive at Nabble.com.