diff --git a/lib/setuplib.php b/lib/setuplib.php index 38650b6240c..af340a89e0c 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -958,7 +958,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); } }