Fix redirector to use relative url

refs 
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
library/Icinga/Web/Controller

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);
} }