Steps to replicate the issue (include links if applicable):
- Run
curl -X POST -H "Content-Type: application/json" --data '{ "wikitext": "== Hello Jupiter ==[[Link|text]]<table><table>" }' 'https://www.mediawiki.org/w/rest.php/v1/transform/wikitext/to/lint/Project:International_Help_Pages/fr/Mod%C3%A8le_Cadre'What happens?:
This error is returned:
{"errorKey":"rest-no-match","messageTranslations":{"en":"The requested relative path (/v1/transform/wikitext/to/lint/Project:International_Help_Pages/fr/Mod%C3%A8le_Cadre) did not match any known handler"},"httpCode":404,"httpReason":"Not Found"}
The same error would have been thrown if we had tried to access the Wikitext to HTML transformation endpoint. But the error goes away if I remove the last forward-slash and make the URL have only two forward-slashes (and thus have the endpoint treat it as a subpage of a page that's not a subpage rather than a subpage of a subpage).
What should have happened instead?:
It should have returned the lint errors for the provided Wikitext.