Page MenuHomePhabricator

"edit lead section" link incorrectly points to second section
Closed, InvalidPublic

Description

Author: sumanah

Description:
On mediawiki.org, I have enabled the "Add an [edit] link for the lead section of a page" gadget and the "Enable section editing via [edit] links" Preference (in the Editing tab).

If I go to a wiki page on mediawiki.org and click "edit" or "edit source" next to the title of an article (e.g., on https://www.mediawiki.org/wiki/Wikimedia_Labs ), then the VisualEditor link correctly thinks I want section 0, the lead section:

https://www.mediawiki.org/w/index.php?title=Wikimedia_Labs&veaction=edit&section=0

but the "edit source" link thinks I want section #1 and thus brings me to edit the "Background" section:

https://www.mediawiki.org/w/index.php?title=Wikimedia_Labs&action=edit&section=1

This may be a problem with the gadget rather than with VE, but it only started recently, so I think it might be a VE-related issue. (I have looked at Bug 51030 - "Edit link for lead section no longer works" which sounds sort of separate.) I shall also mention this bug in the talk page of the relevant gadget.


Version: unspecified
Severity: normal

Details

Reference
bz52910

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:49 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz52910.

Definitely a problem with the gadget.