getParams()->setSeparator('&'); if (Icinga::app()->getFrontController()->getRequest()->isXmlHttpRequest()) { $this->setHeader('X-Icinga-Redirect', rawurlencode($url)); } else { $this->setRedirect($url->getAbsoluteUrl()); } $this->sendHeaders(); exit; } }