From ccac5c1a20e62f0b7fe7a920835bafe22f6c9f3f Mon Sep 17 00:00:00 2001 From: Brendan Heywood Date: Mon, 5 Feb 2024 16:07:36 +1100 Subject: [PATCH] MDL-80823 core: Redirect to wwwroot with full path --- lib/setuplib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }