HomePhabricator

resourceloader: Don't call wfExpandUrl() on load.php urls

Authored by Krinkle.

Description

resourceloader: Don't call wfExpandUrl() on load.php urls

wfExpandUrl() should only be used if the url needs to be absolute
and/or needs to point to the canonical, internal or default wgServer
for the wiki.

For meta-data or API responses this can make sense, but for resources
loaded by the browser from the current page, there is no added value
in expanding these to the default domain.

This is causing problems in custom setups such as at Wikimedia,
with "zero" and "m" sub domains for which $wgServer points to the
canonical domain.

Bug: T106966
Bug: T112646
Change-Id: Ie25d3a8f69564319a1b29b5c5904f3d352924a31

Details

Committed
KrinkleSep 15 2015, 8:41 PM
Parents
rMW2da05bb36db6: Creating new WMF 1.26wmf23 branch
Branches
Unknown
Tags
Unknown
References
refs/changes/45/238545/1
ChangeId
Ie25d3a8f69564319a1b29b5c5904f3d352924a31