MobileFrontend: $wgMobileUrlTemplate ignored if does not start with a placeholder
completed by: Mateusz Maćkowski
mentors: Quim Gil
The MobileFrontend extension has this problem that you could fix:
If I set the $wgMobileUrlTemplate variable to a fixed constant, like this: $wgMobileUrlTemplate = 'www.m.mydomain.org'; it is not used at all to compose the "Mobile view" link at the bottom of the page. The standard domain 'www.mydomain.org' is used instead. If the variable contains a placeholder at the begin, the "Mobile view" link is correct: $wgMobileUrlTemplate = '%h0.m.%h1.%h2';
Read this bug report through for more information:
Bug 58321 - $wgMobileUrlTemplate ignored if does not start with a placeholder
Please ask any questions in the big report, where more community contributors will might able to help.
Students are required to read Wikimedia's general instructions first. Patches should be submitted to Gerrit and reference the bug report in the commit message. Ideally the solution should be added to the beta mode of the MobileFrontend extension to allow testing and quicker merging, repository maintainers can help with this during the code review process.