Files
kevinveenbirkenbachandClaude Opus 5.5 96db58e558 fix(web-app-moodle): route missing static-looking URLs to the Moodle router
The nginx sidecar's static location (`location ~* \.(css|js|...)$`) ended
in `try_files $uri =404`. Moodle 5.3 serves its ES modules from
`/core/esm/<rev>/...` through r.php, and those paths do not exist on
disk. Regex locations win over `location /`, so every module URL ending
in `.js` (`bootstrap/bootstrap.js`,
`@moodlehq/design-system/theme-boost/index.js`, ...) got nginx's own 404
and never reached PHP; both are preloaded on every page.

Fall back to `/r.php` like `location /` does. Files that exist on disk
are still served directly with their cache headers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 14:30:53 +02:00
..
…