Page MenuHomePhabricator

Special:NewSection does not properly handle preloadparams
Closed, ResolvedPublic


This edit on the English Wikipedia caused the "Submit an edit request" button to begin going to URLs like The redirect from Special:NewSection drops the preloadparams parameter, preventing the $1 and $2 from being replaced in the preload text.

original report

Go to, and click "View Source". Click "Submit an edit request". Following the directions on this page creates "Template:$1" in a new section, which does not exist.

Example result:

Event Timeline

Restricted Application added a project: VisualEditor. · View Herald TranscriptAug 23 2019, 2:45 PM
Restricted Application added subscribers: Liuxinyu970226, Aklapper. · View Herald Transcript
Anomie renamed this task from Submitting an edit request for the Selman Akbulut article creates a template that does not exist to Special:NewSection does not properly handle preloadparams.Aug 23 2019, 3:11 PM
Anomie updated the task description. (Show Details)
Anomie added subscribers: DannyS712, Umherirrender.

Change 532421 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/core@master] SpecialNewSection: Fix handling of 'preloadparams'

As a side note, I noticed that the redirect generates URL parameters that don't work in VE. I submitted a patch for that too:

Change 532421 merged by jenkins-bot:
[mediawiki/core@master] SpecialNewSection: Fix handling of 'preloadparams'

DannyS712 closed this task as Resolved.Aug 27 2019, 12:17 AM
DannyS712 assigned this task to matmarex.