From 54c3b9e2c605b3c0ce22cd85119996db61f024ba Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Wed, 8 Jun 2022 10:34:40 +0200 Subject: [PATCH] DashboardsController: Use the default home when pane is requested without a home param in the DM view --- application/controllers/DashboardsController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/controllers/DashboardsController.php b/application/controllers/DashboardsController.php index ee58cd568..8faa9faa6 100644 --- a/application/controllers/DashboardsController.php +++ b/application/controllers/DashboardsController.php @@ -410,6 +410,11 @@ class DashboardsController extends CompatController { $highlightHome = $this->params->get('home'); $highlightPane = $this->params->get('pane'); + if (! $highlightHome && $highlightPane) { + // A Dashboard Pane is always requested with home param unless it's part of the "Default Home", + // so we just assume here that the user is originating from the base route!! + $highlightHome = DashboardHome::DEFAULT_HOME; + } $this->dashboard->load($highlightHome, $highlightPane, true);