API Explorer v4 web page broken
Overview
API Explorer v4 gives a broken page when running in an environment that wasn't originally en_US.
Reproduction steps
- Click on Support -> Developer -> API Explorer v4.
Current behaviour
Expected behaviour
as demonstrated by the demo environment.
Environment information
- Browser: MS Edge but probably irrelevant.
- CiviCRM: 5.49.2/5.51.alpha1
- PHP: 7.4_ but probably irrelevant.
- CMS: Drupal 9.3.13 but probably irrelevant.
- Database: MySQL 8 but probably irrelevant
- Web Server: IIS 10
Comments
I am seeing this in two instance, both were set up using en_GB as the language. Reverting to single language didn't help. The page debugger shows four errors along the same lines:
https://<web root>/libraries/civicrm/core/bower_components/google-code-prettify/bin/prettify.min.css?r=MYbGEen_GB
returns a 404 error.
My theory as to why the local instances aren't working may, of course, be completely wrong, but I look to those more expert in what API Explorer v4 is doing to be able to help. Any suggestions as to a solution would be appreciated.