Parameter "prefix" is ignored in Inputbox, when useve=true.
Open, Needs TriagePublic


When creating a page with Inputbox, "prefix" parameter is ignored, when "useve=true" is used.

Result: Can only create pages, using a prefix, in source code edit. Not in VE.

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 6 2017, 9:06 AM

That's an issue of VisualEditor, as it does not handle these kind of editor options, not an issue of InputBox :)

ManosHacker added a comment.EditedAug 6 2017, 11:58 AM

No, it is an issue of inputbox. The string passed to VE is without the prefix.
The proof is that VE is able to create user pages, via Inputbox,
without using the prefix, as long as the whole path of the page to be created is typed.
Inputbox does not ever send the whole string (combination of prefix and typed string) to VE.

Sorry, I first had the impression, that the prefix URL parameter is handled in MediaWiki core, which then would be something, which is not implemented in VE. However, it is handled by InputBox itself, but only for the edit action, not for the veaction edit. I'll upload a fix for that.

Change 370370 had a related patch set uploaded (by Florianschmidtwelzow; owner: Florianschmidtwelzow):
[mediawiki/extensions/InputBox@master] Let InputBox redirect veaction=edit when prefix param is set