From 67cbdbcf0b59892fdec6be6cb487d7f770c87fee 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 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); } }