Fix redirector to use relative url

refs #4516
This commit is contained in:
Marius Hein 2013-08-21 09:37:16 +02:00
parent 497e184eeb
commit dbae055e8e

View File

@ -235,6 +235,8 @@ class ActionController extends ZfController
{ {
if ($url instanceof Url) { if ($url instanceof Url) {
$url = $url->getRelativeUrl(); $url = $url->getRelativeUrl();
} else {
$url = Url::fromPath($url)->getRelativeUrl();
} }
$this->_helper->Redirector->gotoUrlAndExit($url); $this->_helper->Redirector->gotoUrlAndExit($url);
} }