catalyst / moodle-auth_userkey

Log in to Moodle using one time user key based login URL. Auth plugin for organising simple SSO (single sign on) between moodle and your external web application.
https://moodle.org/plugins/auth_userkey
83 stars 53 forks source link

Returns to server root, not the moodle root after successful login #1

Closed mudrd8mz closed 8 years ago

mudrd8mz commented 8 years ago
        if (!empty($wantsurl)) {
            return $wantsurl;
        } else {
            return '/';
        }

I found this not expected behaviour if the Moodle is not installed in the root of the web server. It seems it should better be like

return new moodle_url('/');
dmitriim commented 8 years ago

Good catch!