From c0aca8f3c7f9d24a3834d21a6a0252d77126ea42 Mon Sep 17 00:00:00 2001 From: Farhan Karmali Date: Fri, 29 Dec 2017 14:40:55 +0530 Subject: [PATCH] MDL-59813 navigation: Changed 'more..' link to point to dashboard In the navigation menu , the 'more' option was previously taking the user to all course page This patch fixes that behavior and takes the user to the dashboard --- lib/navigationlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 7254a09b5f5..5fae0fc5aca 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -3025,7 +3025,7 @@ class global_navigation extends navigation_node { // Show a link to the course page if there are more courses the user is enrolled in. if ($showmorelinkinnav || $showmorelinkinflatnav) { // Adding hash to URL so the link is not highlighted in the navigation when clicked. - $url = new moodle_url('/course/index.php#'); + $url = new moodle_url('/my/?myoverviewtab=courses'); $parent = $this->rootnodes['mycourses']; $coursenode = $parent->add(get_string('morenavigationlinks'), $url, self::TYPE_CUSTOM, null, self::COURSE_INDEX_PAGE);