Closed dasistwas closed 1 year ago
If Moodle is installed in a subdirectory of a domain like example.com/moodle, clicking on the shopping cart item in the navbar and then clicking on the checkout button redirects to the wrong wwwroot:
example.com/local/shopping_cart/checkout.php
instead of
example.com/moodle/local/shopping_cart/checkout.php
It seems that is not the only place where this happens. JavaScript in general does not seem to include wwwroot in the links.
Still to verify: cashier.js if the right url is used.
If Moodle is installed in a subdirectory of a domain like example.com/moodle, clicking on the shopping cart item in the navbar and then clicking on the checkout button redirects to the wrong wwwroot:
example.com/local/shopping_cart/checkout.php
instead of
example.com/moodle/local/shopping_cart/checkout.php
It seems that is not the only place where this happens. JavaScript in general does not seem to include wwwroot in the links.