Page MenuHomePhabricator

MobileFrontend skin hooks should use injected MediaWiki services
Closed, ResolvedPublic

Description

MobileFrontend injects hooks. It currently calls MediaWikiServices::getInstance() but should instead have services injected for consistency with other code.

Acceptance criteria

  • Desktop skin contains a link to mobile site
  • Mobile skin contains a link to desktop site
  • The terms of use link points to the correct page

Event Timeline

Change #1143924 had a related patch set uploaded (by Jdlrobson; author: Fomafix):

[mediawiki/extensions/MobileFrontend@master] Inject service UrlUtils into MobileFrontendSkinHooks

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

Change #1143924 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Inject service UrlUtils into MobileFrontendSkinHooks

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

Jdlrobson-WMF claimed this task.

Beta cluster seems to be working as expected. Noting that beta cluster terms of use link points to non-existent https://mobile.test/wiki/Terms_of_Use but that is not new [1]

[1] https://web.archive.org/web/20250120110341/https://en.m.wikipedia.beta.wmflabs.org/wiki/T352930