HomePhabricator

Update URL configuration for mobile when entering mobile mode

Authored by ori.

Description

Update URL configuration for mobile when entering mobile mode

  • Use $wgCanonicalServer to construct $wgExtensionAssetsPath, $wgLoadScript, $wgResourceBasePath, and $wgStyleSheetPath, because MobileContext::getMobileUrl() does not work correctly with protocol-relative URLs.
  • When entering mobile mode, call MobileContext::getMobileUrl() to transform each of the aforementioned configuration variables.

Bug: T106966
Change-Id: I0990ac5b6850315420511fce8b8be0bb97efda5d