From dbae055e8e3d6535431815f4b99bbb27cd105e2a Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Wed, 21 Aug 2013 09:37:16 +0200 Subject: [PATCH] Fix redirector to use relative url refs #4516 --- library/Icinga/Web/Controller/ActionController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index c0395a4ce..5698de2d0 100755 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -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); }