List of steps to reproduce:
- Setup RESTbase.
- Install Math, but without touch additional configuration. The fallback is Wikimedia's Mathoid. ('https://mathoid-beta.wmflabs.org')
- Go to Special:MathStatus or edit any page with <math> syntax.
What happens?:
An error message is rendered:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "/mathoid/local/v1/":): {\displaystyle \alpha}
What should have happened instead?:
The render should succeed.
The cause:
If isset( $wgVirtualRestConfig['modules']['restbase'] ), \MediaWiki\Extension\Math\MathRestbaseInterface::getUrl() do not read $wgMathFullRestbaseURL at all because of the early return: https://gerrit.wikimedia.org/g/mediawiki/extensions/Math/+/6868113ae863ad8423c84b6f572cd1bbfdae9723/src/MathRestbaseInterface.php#227
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
- MediaWiki 1.37
Todos:
- Add documentation of wgMathPreferRestbaseURL to mediawiki.org
- backport to REL_1.37, REL_1.38?,