MDL-80823 core: Redirect to wwwroot with full path

This commit is contained in:
Brendan Heywood 2024-02-05 16:07:36 +11:00
parent 3fc907e3d8
commit ccac5c1a20

View File

@ -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);
}
}