Page MenuHomePhabricator

Handle mobile domains in core
Open, Needs TriagePublic


MobileFrontend supports using an alternative domain for the mobile site, but MediaWiki core itself has no concept of it, leading to all kinds of limitations (not possible to cross-link to the other version, interwiki links lead back to the desktop version). There should probably be support in core for mobile domains (or maybe something more generic like domain variants).

T100402: Core should have support for mobile detection

Event Timeline

Tgr created this task.May 24 2018, 3:22 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 24 2018, 3:22 PM
Tgr added a comment.May 24 2018, 3:25 PM

LinkTarget could gain a new property (isMobile or getDomainVariant or something like that), which would default to the current site type but could be manually flipped when desirable. Getting the server URL / interwiki URL from the canonical one would probably be some sort of hook.

pmiazga added a project: Readers-Web-Backlog.
Jdlrobson added a subscriber: Jdlrobson.

@Tgr what are the roadblocks for doing this? Do we need an RFC? Which team would be best equipped to make this happen?

@Jdlrobson, @Tgr hello!

We talked about this in today's backlog grooming session and confusion quickly arose. Should this be part of T195473 in some form? Do we want to schedule a technical discussion for how to approach this?

@Tbayer also noted that Wikipedia Zero support (e.g., may have impact on this effort.

These are very different problems/concerns than T195473 given that relates to frontend architecture. This will probably need an RFC to start with. @Tgr would you be interested in drafting one with me?

Vvjjkkii renamed this task from Handle mobile domains in core to xccaaaaaaa.Jul 1 2018, 1:09 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from xccaaaaaaa to Handle mobile domains in core.Jul 2 2018, 3:51 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.

@Tgr @Jdlrobson Did an RFC happen here? This blocks us from giving Google and other search engines the <link> tags that they need in order to properly index mobile sites.

Nope, an RFC has not been drafted. I'm happy to be a coauthor of an RFC, but given I'm primarily a frontend engineer, I would like some help with the technical PHP side of things and/or support from someone who has experience in writing RFCs.

Tgr added a comment.Feb 2 2019, 9:56 PM

Besides mobile domains, URL variants could potentially be useful for T210909: Introduce secure mode to MediaWiki as an origin segmentation mechanism (although probably not worth the complexity).

Jdlrobson moved this task from Inbox to Next up on the User-Jdlrobson board.Nov 5 2019, 5:39 PM
Jdlrobson moved this task from Next up to OKR Backlog on the User-Jdlrobson board.Nov 5 2019, 5:44 PM