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
This commit is contained in:
parent
47dda77573
commit
b5e69c4ef6
1 changed files with 2 additions and 2 deletions
|
|
@ -1485,7 +1485,7 @@ MESSAGE;
|
|||
$query = self::createLoaderQuery( $context, $extraQuery );
|
||||
$script = $this->getLoadScript( $source );
|
||||
|
||||
return wfExpandUrl( wfAppendQuery( $script, $query ), PROTO_RELATIVE );
|
||||
return wfAppendQuery( $script, $query );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1513,7 +1513,7 @@ MESSAGE;
|
|||
$only, $printable, $handheld, $extraQuery
|
||||
);
|
||||
|
||||
return wfExpandUrl( wfAppendQuery( $wgLoadScript, $query ), PROTO_RELATIVE );
|
||||
return wfAppendQuery( $wgLoadScript, $query );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue