Page MenuHomePhabricator

Link to a anchor with brackets broken inside Wikitext
Open, MediumPublicFeature

Description

A link to a anchor with brackets is broken in Wikitext, but works in TOC and summary, see URL.

It is possible to let this work also in wikitext? Thanks.


Version: unspecified
Severity: enhancement
URL: http://test.wikipedia.org/w/index.php?title=Anchor_with_brackets&diff=91516&oldid=91515&diffonly=0

Details

Reference
bz25709

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:18 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz25709.
bzimport added a subscriber: Unknown Object (MLST).

kontakt-bugzilla-wikimedia-org-22.07.2011 wrote:

(In reply to comment #1)

The URL has become invalid.

Sorry, it was me. The URL is valid again!

This is a general issue with the fact that ['s and ]'s are illegal characters in Titles, so not allowed in the anchors.

In addition to the .5B thing, you can also use percent-escaping:

#This is a %5Bheader%5D with brackets

I don't think this bug is very likely to be fixed.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.