diff --git a/theme/boost/classes/boostnavbar.php b/theme/boost/classes/boostnavbar.php index 3b5d62ab3c9..f3152ab11b4 100644 --- a/theme/boost/classes/boostnavbar.php +++ b/theme/boost/classes/boostnavbar.php @@ -55,6 +55,9 @@ class boostnavbar implements \renderable { protected function prepare_nodes_for_boost(): void { global $PAGE; + // Remove the navbar nodes that already exist in the primary navigation menu. + $this->remove_items_that_exist_in_navigation($PAGE->primarynav); + // Defines whether section items with an action should be removed by default. $removesections = true; @@ -94,9 +97,6 @@ class boostnavbar implements \renderable { } } - $this->remove('myhome'); // Dashboard. - $this->remove('home'); - // Remove 'My courses' if we are in the module context. if ($this->page->context->contextlevel == CONTEXT_MODULE) { $this->remove('mycourses');