Last modified: 2012-03-20 09:34:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36225, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34225 - After saving edition Mediawiki returns to wrong section
After saving edition Mediawiki returns to wrong section
Status: RESOLVED DUPLICATE of bug 111
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.20.x
All Linux
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-06 13:22 UTC by Luis Orlando
Modified: 2012-03-20 09:34 UTC (History)
5 users (show)

See Also:
Web browser: Google Chrome
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Luis Orlando 2012-02-06 13:22:03 UTC
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.
Comment 1 Alexandre Emsenhuber [IAlex] 2012-03-20 09:34:53 UTC

*** This bug has been marked as a duplicate of bug 111 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links