diff --git a/course/lib.php b/course/lib.php index ae6bd994d40..2f87a51c7a4 100644 --- a/course/lib.php +++ b/course/lib.php @@ -49,6 +49,11 @@ define('MOD_CLASS_RESOURCE', 1); function make_log_url($module, $url) { switch ($module) { case 'course': + if (strpos($url, 'report/') === 0) { + // there is only one report type, curse reports are deprecated + $url = "/$url"; + break; + } case 'file': case 'login': case 'lib':