diff --git a/lib/setuplib.php b/lib/setuplib.php index b7a00fdc7b5..25ff11a3845 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -888,7 +888,7 @@ function initialise_fullme() { throw new moodle_exception('requirecorrectaccess', 'error', '', null, 'You called ' . $calledurl .', you should have called ' . $correcturl); } - redirect($CFG->wwwroot, get_string('wwwrootmismatch', 'error', $CFG->wwwroot), 3); + redirect($CFG->wwwroot . $rurl['fullpath'], get_string('wwwrootmismatch', 'error', $CFG->wwwroot), 3); } }