6 Commits

Author SHA1 Message Date
968183714d MDL-82565 core: Improve routed Error handling
In previous versions of Moodle we recommended use of the fallback
resource with /error/index.php.

This is incompatible with the routing system because they use the same
mechanism for responding to any unknown request.

To better handle this we need to move the current error handler page to
a routed page, and to provide a shim for the old location.

At the same time we need to improve the Slim Error handling middleware
to respond with our 404 handler for all 404s, except for those on API
routes where we always respond with JSON.
2025-03-26 21:20:59 +08:00
9137558cd5 MDL-82565 core: Add support for routing of front-end pages
This is the beginning of the end for non-routed pages in Moodle and the
start of SEO-friendly page URLs.

A 'shim' is provided for backwards compatibility.
2025-03-26 21:20:58 +08:00
fdd8891091 MDL-84543 core: Basepath guess should work on root domains 2025-03-12 13:03:05 +08:00
a8c6201dbf MDL-82824 core: Correct thirdparty entry for slim 2024-11-04 11:52:10 +08:00
f173a7026a MDL-83293 core: Fix path separator when guessing the base path
Ensure that path separator for the script when guessing the base path
uses forward slash instead of the OS' directory separator.
(e.g. "\" in Windows)
2024-10-03 08:01:30 +08:00
1b7d08465c MDL-81031 core: Add routing 2024-08-06 16:01:07 +08:00