mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
_render handled in IndexController. Does this make any sense?
This commit is contained in:
parent
3daf46097d
commit
915a024030
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
use Icinga\Web\Controller\ActionController;
|
use Icinga\Web\Controller\ActionController;
|
||||||
use Icinga\Application\Benchmark;
|
use Icinga\Application\Benchmark;
|
||||||
|
use Icinga\Web\Url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Application wide index controller
|
* Application wide index controller
|
||||||
@ -44,7 +45,12 @@ class IndexController extends ActionController
|
|||||||
public function preDispatch()
|
public function preDispatch()
|
||||||
{
|
{
|
||||||
if ($this->getRequest()->getActionName() !== 'welcome') {
|
if ($this->getRequest()->getActionName() !== 'welcome') {
|
||||||
$this->redirect('dashboard/index');
|
$url = Url::fromPath('dashboard');
|
||||||
|
$render = $this->_request->getParam('_render');
|
||||||
|
if ($render) {
|
||||||
|
$url->setParam('_render', $render);
|
||||||
|
}
|
||||||
|
$this->redirectNow($url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user