diff --git a/login/index.php b/login/index.php index b277f891e81..45845cbaf49 100644 --- a/login/index.php +++ b/login/index.php @@ -353,7 +353,7 @@ if (!empty($SESSION->loginerrormsg)) { if ($errormsg) { $SESSION->loginerrormsg = $errormsg; } - redirect(new moodle_url('/login/index.php')); + redirect(new moodle_url($CFG->httpswwwroot . '/login/index.php')); } $PAGE->set_title("$site->fullname: $loginsite");