Last modified: 2012-05-23 19:53:30 UTC
When a section title includes certain special or non-alphabetical characters (i.e. any that do not appear as themselves in a URL, such as parentheses, etc), or any piped links, the linked arrow in the page's history breaks. For example, in the history of [[Wikipedia:Administrators' Noticeboard/Incidents]], when someone edits the section entitled [[User:Violetriga|violet/riga]], the arrow links to #User:Violetriga.7Cviolet.2Friga, when it should link to #violet.2Friga.
Also, the parsing of the wikilink at the start of the summary in the history line is confusing, although not broken like the arrow link. The section title is "[[User:Violetriga|violet/riga]]". The summary prefix when editing is "/* [[User:Violetriga|violet/riga]] */ ". The history line shows a section title of "violet/riga". The link is to the page "User:Violetriga". And there is no gap between the arrow link and the "violet/riga" link. See bug 1305, which discusses changes to the arrow/summary link.
The original URL is outdated. You can find the examples with http://en.wikipedia.org/w/index.php?title=Wikipedia:Administrators%27_noticeboard/Incidents&offset=20050607004643&limit=500&action=history Please note that what looks in history as one link (→violet/riga) are two links a) → wroung http://en.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard/Incidents#User:Violetriga.7Cviolet.2Friga should be http://en.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard/Incidents#violet.2Friga as for http://en.wikipedia.org/w/index.php?title=Wikipedia:Administrators%27_noticeboard/Incidents&oldid=14816929#violet.2Friga b) violet/riga - http://en.wikipedia.org/wiki/User:Violetriga What should be done: i) insert always a space after "→" ii) fix the problem related to bug 2831: return after edit sections using headings with wikilinks returns to other anchors then the ones used in TOC Regards Reinhardt [[user:gangleri]]
Patch is available at bug 5019.
Created attachment 2271 [details] Proposed fix Here's a shot at fixing this bug. This patch is less ambitious than Simetrical's at bug 5019, but it seems to fix the problem without breaking anything.
*** Bug 11006 has been marked as a duplicate of this bug. ***
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Comment on attachment 2271 [details] Proposed fix Patch no longer applies to trunk, so marking obsolete (checked by Rusty per http://lists.wikimedia.org/pipermail/wikitech-l/2011-November/056340.html ).
Will, if you'd like to revise your patch to work with the current codebase, that would be welcome; if you'd like suggestions or discussion, please chat with other MediaWiki developers in #mediawiki on Freenode IRC. Thanks!
Created attachment 9551 [details] Updated patch against r104197 Linker.php has changed a bit since then but here's my best guess at what that's supposed to do. That code moved from formatComment to formatAutocomments and then to formatAutocommentsCallback. This patch introduces the use of the global $wgLegalTitleChars.
Seems to be fixed on en.wiki