_render handled in IndexController. Does this make any sense?

This commit is contained in:
Thomas Gelf 2014-03-04 13:24:53 +00:00
parent 3daf46097d
commit 915a024030

@ -32,6 +32,7 @@
use Icinga\Web\Controller\ActionController;
use Icinga\Application\Benchmark;
use Icinga\Web\Url;
/**
* Application wide index controller
@ -44,7 +45,12 @@ class IndexController extends ActionController
public function preDispatch()
{
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);
}
}