Page MenuHomePhabricator

Linking to a file: Leading colon not stripped
Closed, ResolvedPublic

Description

Linking to a file with [[:File:Foo.jpg]]. The leading colon not stripped:

https://en.wikipedia.org/wiki/User:Raymond/Linking_to_a_file


Version: unspecified
Severity: normal
URL: https://en.wikipedia.org/wiki/User:Raymond/Linking_to_a_file

Details

Reference
bz43171

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:50 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz43171.

Thank you for this. However, this is intentional - otherwise, it would not be a link to the file, it'd be a transclusion of the image, which will be done differently (an insertion inspector). Links to pages should not accidentally become images for users who do not (and should not) understand the way that wikitext expects that.

Marking as WONTFIX.

Well, our rendering differs from the PHP parser.

We could still support the same rendering by making the serializer clever enough to re-add the colon to the text before checking the link content for changes.

Low priority for now, but something we should support eventually.