diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php
index 65ad8a26263d7..697de73d87999 100644
--- a/htdocs/core/menus/standard/eldy.lib.php
+++ b/htdocs/core/menus/standard/eldy.lib.php
@@ -75,9 +75,15 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
$menu_arr = array();
// Home
+ $landingpage = (empty($user->conf->MAIN_LANDING_PAGE) ? (!getDolGlobalString('MAIN_LANDING_PAGE') ? '' : $conf->global->MAIN_LANDING_PAGE) : $user->conf->MAIN_LANDING_PAGE);
+ if (! empty($landingpage)) {
+ $landingpage = str_replace(DOL_URL_ROOT, '', dol_buildpath($landingpage, 1));
+ } else {
+ $landingpage = '/index.php?mainmenu=home&leftmenu=home';
+ }
$menu_arr[] = array(
'name' => 'Home',
- 'link' => '/index.php?mainmenu=home&leftmenu=home',
+ 'link' => $landingpage,
'title' => "Home",
'level' => 0,
'enabled' => $showmode = 1,
@@ -1120,7 +1126,13 @@ function get_left_menu_home($mainmenu, &$newmenu, $usemenuhider = 1, $leftmenu =
$langs->load("users");
// Home - dashboard
- $newmenu->add("/index.php?mainmenu=home&leftmenu=home", $langs->trans("MyDashboard"), 0, 1, '', $mainmenu, 'home', 0, '', '', '', '');
+ $landingpage = (empty($user->conf->MAIN_LANDING_PAGE) ? (!getDolGlobalString('MAIN_LANDING_PAGE') ? '' : $conf->global->MAIN_LANDING_PAGE) : $user->conf->MAIN_LANDING_PAGE);
+ if (! empty($landingpage)) {
+ $landingpage = str_replace(DOL_URL_ROOT, '', dol_buildpath($landingpage, 1));
+ } else {
+ $landingpage = '/index.php?mainmenu=home&leftmenu=home';
+ }
+ $newmenu->add($landingpage, $langs->trans("MyDashboard"), 0, 1, '', $mainmenu, 'home', 0, '', '', '', '');
// Setup
$newmenu->add("/admin/index.php?mainmenu=home&leftmenu=setup", $langs->trans("Setup"), 0, $user->admin, '', $mainmenu, 'setup', 0, '', '', '', '');