Page MenuHomePhabricator

File::getDescriptionText() renders links differently for local and foreign files
Open, MediumPublic

Description

Foreign files use a HTTP request with action=render, which results in absolute links. Local files call the parser, which gives relative links.


Version: 1.23.0
Severity: normal

Details

Reference
bz57294

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:26 AM
bzimport set Reference to bz57294.
bzimport added a subscriber: Unknown Object (MLST).

Apparently, the decision whether to use relative URLs is made somewhere deep down in the bowels of the parser by checking the value of $wgRequest->getVal('action'). Fun.