HomePhabricator

resourceloader: Fix FileModule resource URLs for document root wikis

Description

resourceloader: Fix FileModule resource URLs for document root wikis

Per the comment in extractBasePaths(), remoteBasePath is typically '/'
when MediaWiki is installed in the document root. CSSMin knows what to
do with that, but getRemotePath() was getting it wrong, generating an
invalid protocol-relative URL.

So, add a simple hack for this case.

Change-Id: I16abf482e3a1a4a548c571de0e81cb3c1bdf55e1

Details

Provenance
tstarlingAuthored on Feb 24 2021, 1:13 AM
KrinkleCommitted on Feb 24 2021, 5:27 AM
Parents
rMWbcba94d420f0: Merge "Convert AuthManager to Authority: step 1."
Branches
Unknown
Tags
Unknown
ChangeId
I16abf482e3a1a4a548c571de0e81cb3c1bdf55e1