Page MenuHomePhabricator

After saving edition Mediawiki returns to wrong section
Closed, ResolvedPublic

Description

Author: luisrotelli

Description:
In Mediawiki, each section has an index number. So, when you edit a section the URL is like:
http://wikijur/index.php?title=Caixa...dit&section=40
In theory, there is no problem to have several sections with the same name in one page, because each section has an index number.
So you can have:
Text...

Comments

Long Text...
Other sections...

Comments

and so on, again and again....

But when you do have several sections with the same name, after saving a section edition, instead of returning to the section you clicked to edit, mediawiki returns to the first section with the same name in the page. In other words, although mediawiki has the unique identifier - the index of the section - it doesn't uses it to return to the page. on the contrary, it uses it's name, which is not reliable because you can have several sections with the same name. In my case, a tributary wiki, I have hundreds of sections with the same name in a single page (Jurisprudence, Doctrine, Comments).

I need to change this behaviour in order to instruct mediawiki to return to the right section, the one I was editing, in the example section=40 and no to section=3 for example, which happens to have the same name.
But until now I couldn't find where to make this change.


Version: 1.20.x
Severity: major
OS: Linux

Details

Reference
bz34225

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:12 AM
bzimport set Reference to bz34225.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 111 ***