I experience irregular behavior using the Zend controller method _redirect.
My copy of the application is displayed through a symbolic link in mine DocumentRoot. Also, my router is configured by default to respond to this pattern:
http://localhost/<appSymLink>/<param_A>/<controller>/<action>/
From the controller, I create the following URL:
$url = $this->_helper->url('action', 'controller', $param_A = 'valueA');
If I access the URL:
http://localhost/<appSymLink>/<param_A>/<controller>/<action>/
This variable contains the following line:
/<appSymLink>/<param_A>/<controller>/<action>/
And when I call
$this->_redirect($url);
The user is explicitly redirected to this path with redundant base paths.
/<appSymLink>/<appSymLink>/<param_A>/<controller>/<action>/
Zend seems to add the base path twice.
My copy of my employee’s application is in him DocumentRoot, and he does not experience this problem.
Defining an empty base path inside an action, just before the operation, works like this:
$this->getRequest()->setBaseUrl('');
. , routeShutdown .
- - ?