diff --git a/library/Icinga/Web/Response.php b/library/Icinga/Web/Response.php index 2ba017bf8..13e88e32b 100644 --- a/library/Icinga/Web/Response.php +++ b/library/Icinga/Web/Response.php @@ -28,10 +28,15 @@ class Response extends Zend_Controller_Response_Http return $this->request; } + /** + * Redirect to the given URL and exit immediately + * + * @param string|Url $url + */ public function redirectAndExit($url) { if (! $url instanceof Url) { - $url = Url::fromPath($url); + $url = Url::fromPath((string) $url); } $url->getParams()->setSeparator('&');