You can call setPrependBase(true) on the redirector action helper, and
it should fix your problem.
ardx wrote:
The base URL for my app is '/xx'. I am using version 1.7 of the framework.
I want to redirect to the 'activate' action of the 'user' controller, for
which the url would be '/xx/user/activate'
Putting
$this->_redirect($this->_helper->url('activate', 'user'))
in a controller causes a redirect to '/xx/xx/user/activate', which is
non-existent. It seems that the url helper prepends '/xx' to
'/user/activate' and the redirect method prepends another '/xx'.
I have tried setting the base url explicitly in the front controller:
$this->_front->setBaseUrl('/xx');
but this does not alter the problem behavior.
What am I missing?