Merge branch 'MDL-34921_master_unwanted-sitehome-redirects' of https://github.com...
authorAndrew Nicols <andrew@nicols.co.uk>
Thu, 23 Apr 2015 03:49:16 +0000 (11:49 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Thu, 23 Apr 2015 03:49:16 +0000 (11:49 +0800)
course/format/lib.php

index 51709b9..8d65610 100644 (file)
@@ -1044,7 +1044,7 @@ class format_site extends format_base {
      * @return null|moodle_url
      */
     public function get_view_url($section, $options = array()) {
-        return new moodle_url('/');
+        return new moodle_url('/', array('redirect' => 0));
     }
 
     /**