welcome: move to index, icingaweb2/director

This commit is contained in:
Thomas Gelf 2015-12-17 21:57:27 +01:00
parent 1c36bb3f59
commit 42d2256aa8
5 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ $section = $this->menuSection(
$this->translate('Icinga Director')
)->setIcon('cubes');
$section->add($this->translate('Overview'))->setUrl('director/welcome')->setPriority(20);
$section->add($this->translate('Overview'))->setUrl('director')->setPriority(20);
$section->add($this->translate('Hosts'))->setUrl('director/hosts')->setPriority(30);
$section->add($this->translate('Services'))->setUrl('director/services')->setPriority(40);
$section->add($this->translate('Commands'))->setUrl('director/commands')->setPriority(50);

View File

@ -128,7 +128,7 @@ abstract class ActionController extends Controller
if ($resourceName) {
$this->db = Db::fromResourceName($resourceName);
} else {
$this->redirectNow('director/welcome');
$this->redirectNow('director');
}
}

View File

@ -23,7 +23,7 @@ abstract class ObjectsController extends ActionController
if (in_array(ucfirst($type), $this->globalTypes)) {
$ltype = strtolower($type);
$tabs->add('overview', array(
'url' => 'director/welcome',
'url' => 'director',
'label' => $this->translate('Overview')
));