Page MenuHomePhabricator

#mw-newentity-form1 sometimes has incorrect action attribute
Closed, DuplicatePublic


I got this somehow. Note that Special: prefix in action= is missing.

<form id='mw-newentity-form1' action='/wiki/NewItem' method='post' enctype='application/x-www-form-urlencoded' class='mw-htmlform-ooui oo-ui-layout oo-ui-formLayout'>

This was achieved by trying to create an item with language=zh-cn, label=User:... (which is rejected by "Links to userpages" on Wikidata).

Related Objects

Event Timeline

liangent raised the priority of this task from to Needs Triage.
liangent updated the task description. (Show Details)
liangent added a subscriber: liangent.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript
thiemowmde added a subscriber: thiemowmde.

I can reproduce this as described. Works in all languages. Simply go to and try to submit the form twice. I believe this is a bug in the HTMLForm class.