MDL-80823 core: Redirect to wwwroot with full path

This commit is contained in:
Brendan Heywood
2024-02-08 12:08:14 +11:00
parent 44fd4d7dc0
commit 67cbdbcf0b
+1 -1
View File
@@ -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);
}
}