Hello!
/var/www/html/fog/management/index.php
Please include following code in the end of the file - to make the fog menu buttons provide better UX. So that if clicked on menu item, lets say hosts, then all hosts will be shown, instead of clicking on menu button and then list all hosts.
if (isset($_REQUEST[‘node’]) && $_REQUEST[‘node’] === ‘host’ && empty($_REQUEST[‘sub’])) {
header(‘Location: index.php?node=host&sub=list’);
exit;
}
if (isset($_REQUEST[‘node’]) && $_REQUEST[‘node’] === ‘image’ && empty($_REQUEST[‘sub’])) {
header(‘Location: index.php?node=image&sub=list’);
exit;
}
if (isset($_REQUEST[‘node’]) && $_REQUEST[‘node’] === ‘user’ && empty($_REQUEST[‘sub’])) {
header(‘Location: index.php?node=user&sub=list’);
exit;
}
if (isset($_REQUEST[‘node’]) && $_REQUEST[‘node’] === ‘group’ && empty($_REQUEST[‘sub’])) {
header(‘Location: index.php?node=group&sub=list’);
exit;
}