Steps to replicate the issue (include links if applicable):
- Go to https://anp.wikipedia.org/wiki/विशेष:ContentTranslation
- "Translate" an article from any language into Angika (i.e. just write some text into the translation field)
- Hit "Publish"
- You will probably get a warning that there are potential problems; publish anyways
What happens?:
- The result is this: https://anp.wikipedia.org/wiki/Kharghar or this: https://anp.wikipedia.org/wiki/Skiptvet
- These pages will probably be deleted soon, so the full wikitext of each is pasted below:
[[Kharghar]]
{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"post","uri":"/anp.wikipedia.org/v1/transform/html/to/wikitext/Kharghar"} [[श्रेणी:नवी मुंबई केरौ नोड सब]] [[श्रेणी:विकिडेटा प कोऔरडिनेट]]
[[Skiptvet]]
{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"post","uri":"/anp.wikipedia.org/v1/transform/html/to/wikitext/Skiptvet"}
This JSON is obviously not what I or User:Angpradesh typed into the tool.
What should have happened instead?:
- Obviously, the ideal thing would be that the translation you entered is saved.
- However, if that is not possible in the circumstance, CX should:
- Refuse to save because of an error.
- Or ideally even refuse to let you start translating, so you don't waste your efforts, since it can't be saved
I strongly suspect this is linked to RESTBase not yet being set up for anpwiki (see T332379), which is causing some other problems (notably Visual Editor not working properly, and the Reply Tool not letting you save replies).
If my suspicion is correct, this specific bug for anpwiki will be fixed once RESTBase is set up correctly. However, this task should be about sensible error handling by ContentTranslation in these cases.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):