Page MenuHomePhabricator

MobileContext::getDesktopUrl() desn't really work for hosts like www.mediawiki.org <-> m.mediawiki.org
Closed, ResolvedPublic

Description

If you pass it a real mobile URL, it will not know where to take the www part from as $wgMobileUrlTemplate doesn't provide this information. At most, one can hack it up to output something like "mediawiki.org". Note that because in WMF $wgServer is always the same, we're not affected, only third parties with two real domains (are there any?)


Version: unspecified
Severity: minor

Details

Reference
bz50967

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:59 AM
bzimport set Reference to bz50967.
MaxSem created this task.Jul 8 2013, 7:13 PM

Change 72612 had a related patch set uploaded by MaxSem:
An incomplete attempt to fix MobileContext::getDesktopUrl()

https://gerrit.wikimedia.org/r/72612

Change 72612 merged by jenkins-bot:
Fix MobileContext::getDesktopUrl()

https://gerrit.wikimedia.org/r/72612