diff --git a/www/include/core/login/processLogin.php b/www/include/core/login/processLogin.php index f63f6922cf8..daedcf69735 100644 --- a/www/include/core/login/processLogin.php +++ b/www/include/core/login/processLogin.php @@ -1,6 +1,7 @@ user->default_page) && $centreon->user->default_page != '') { - $headerRedirection .= "?p=" . $centreon->user->default_page; - if (isset($_GET["min"]) && $_GET["min"] == '1') { - $headerRedirection .= '&min=1'; + // get more details about the default page + $stmt = $pearDB->prepare( + "SELECT topology_url, is_react FROM topology WHERE topology_page = ? LIMIT 0, 1" + ); + $pearDB->execute($stmt, [$centreon->user->default_page]); + + if ($stmt->rowCount() && ($topologyData = $stmt->fetch()) && $topologyData['is_react']) { + // redirect to the react path + $headerRedirection = '.' . $topologyData['topology_url']; + } else { + $headerRedirection .= "?p=" . $centreon->user->default_page; + + if (isset($_GET["min"]) && $_GET["min"] == '1') { + $headerRedirection .= '&min=1'; + } } } }