Wunderbyte-GmbH / moodle-local_shopping_cart

Other
4 stars 5 forks source link

Click on shopping cart checkout redirects to document_root instead of wwwroot #15

Closed dasistwas closed 1 year ago

dasistwas commented 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.

dasistwas commented 1 year ago

Still to verify: cashier.js if the right url is used.