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
1 changed files with 2 additions and 0 deletions

View File

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