Page MenuHomePhabricator

If two article subsections have the same name, on "edit section" saving the edit always returns to the first of the sections
Closed, DuplicatePublic

Description

This primarily affects Wikivoyage, as two subsections of the same page might have the same name, something like:

'''India''' is a country in southeast Andalasia which primarily manufactures India ink.

Get in

By elephant

  • Rent an elephant in the neighbouring country of <s>Pachyderm</s> [[Pakistan]].

Get around

By elephant

  • Just ring +91-800-RENT-A-JUMBO and an elephant will be delivered to you.

See

  • Elephants. If you find an albino, bring her back to Ste. Monique (Québec) as a pet and name her Mirabel. Beautiful name...

Internally, the 'id=' HTML tag for 'Get in - By elephant' is [[India#By elephant]] and 'Get around - By elephant' is tagged as [[India#By elephant 2]]. The [edit source] links all edit the page by section number, not section name, so should not be affected by duplicate section naming (and is OK unless someone just added a section since the page was last refreshed).

Save the edit, though, and the display afterward returns to the normal reading mode - supposedly at the section last edited. This works, unless two subsections have the same name. Edit "Get around - By elephant", hit the [save] button and the display returns to [[India#By elephant]] instead of [[India#By elephant 2]].

Not hugely noticeable (as the edit does get made correctly) but not quite what the user was expecting.

Event Timeline

Carlb created this task.Jul 13 2015, 3:27 AM
Carlb raised the priority of this task from to Low.
Carlb updated the task description. (Show Details)
Carlb added a project: MediaWiki-General.
Carlb added a subscriber: Carlb.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 13 2015, 3:27 AM