Does not load of Moodle not in the root of the web server
Opened this issue · 0 comments
mudrd8mz commented
The following code in js/scripts.js is not correct:
var ajaxURL = window.location.origin + '/local/sidebar_contact/index.php';
If the Moodle instance is running in a subdirectory of the webserver, it produces invalid URL. Ideally, this URL should be passed directly from the PHP. This is easy with YUI, not that easy with jQuery in Moodle framework.