mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 04:44:25 +02:00
parent
a5e9d6cf0d
commit
e01629fe0b
@ -370,17 +370,14 @@ class ActionController extends Zend_Controller_Action
|
|||||||
**/
|
**/
|
||||||
public function redirectNow($url)
|
public function redirectNow($url)
|
||||||
{
|
{
|
||||||
if (! $url instanceof Url) {
|
$url = Url::fromPath(preg_replace('~&~', '&', $url));
|
||||||
$url = Url::fromPath($url);
|
|
||||||
}
|
|
||||||
$url = preg_replace('~&~', '&', $url);
|
|
||||||
if ($this->_request->isXmlHttpRequest()) {
|
if ($this->_request->isXmlHttpRequest()) {
|
||||||
header('X-Icinga-Redirect: ' . rawurlencode($url));
|
header('X-Icinga-Redirect: ' . rawurlencode($url));
|
||||||
// $this->getResponse()->sendHeaders() ??
|
// $this->getResponse()->sendHeaders() ??
|
||||||
// Session shutdown
|
// Session shutdown
|
||||||
exit; // Really?
|
exit; // Really?
|
||||||
} else {
|
} else {
|
||||||
$this->_helper->Redirector->gotoUrlAndExit($url);
|
$this->_helper->Redirector->gotoUrlAndExit($url->getRelativeUrl());
|
||||||
}
|
}
|
||||||
$this->isRedirect = true; // pretty useless right now
|
$this->isRedirect = true; // pretty useless right now
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user