Verified Commit 630de540 authored by David Beniamine's avatar David Beniamine
Browse files

Add Moodle base url in redirect url

parent d34a6717
......@@ -26,6 +26,7 @@ class helper
public static function requireLabnbookAuthentication()
{
global $COURSE;
global $CFG;
if (fetch\user::isAuthenticated()) {
return;
}
......@@ -35,7 +36,7 @@ class helper
return;
case fetch\institution::ERROR_LOGIN_UNKNOWN:
redirect(
"/mod/labnbook/user-binding.php?courseid={$COURSE->id}&return="
$CFG->wwwroot."/mod/labnbook/user-binding.php?courseid={$COURSE->id}&return="
. \base64_encode($_SERVER['REQUEST_URI'])
);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment