-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
3.10
https://docs.moodle.org/dev/Check_API
We want to put some new checks in core moodle to assert that the url is being rewritten properly. There are different server configurations and php level code that can affect this and when it's incorrect can prevent files from loading or result in 404 errors.
All of this ONLY applies on https
Do some low level curls and assert:
- /my on http redirects to /my on https, OR /my/ on https
- /my/ on http redirects to /my/ on https OR to the /login on https, but NOT /login on http
- /dontexist on http redirects to /dontexist on https
- /pluginfile/xxxxx/.js should not redirect to end in a slash
If the site is not https (why???) then assert these instead:
- /my -> /my/
- /dontexist -> 404
- /pluginfile/xxxxx/.js should not redirect to end in a slash