commit 2b87e5983b9f502c634ed3246a2181ac9fa0bbd4 Author: Rushikesh Date: Sat Jan 16 02:14:44 2016 +0530 MDL-22152 User profile: Redirecting to course homepage diff --git a/lib/myprofilelib.php b/lib/myprofilelib.php index e397770..9cec3f8 100644 --- a/lib/myprofilelib.php +++ b/lib/myprofilelib.php @@ -240,11 +240,11 @@ function core_myprofile_navigation(core_user\output\myprofile\tree $tree, $user, } $linkattributes['class'] = 'dimmed'; } - $params = array('id' => $user->id, 'course' => $mycourse->id); + $params = array('id' => $mycourse->id); if ($showallcourses) { $params['showallcourses'] = 1; } - $url = new moodle_url('/user/view.php', $params); + $url = new moodle_url('/course/view.php', $params); $courselisting .= html_writer::tag('li', html_writer::link($url, $ccontext->get_context_name(false), $linkattributes)); } else {