by wolrah · 3y ago · 0 comments
Wikipedia, like many web sites, makes it really easy for mobile users to get redirected to a mobile-specific version running on a mobile-specific domain.
The problem is that this mobile-specific version is not good for browsing on a full computer. It's not even great on a tablet. But there's no easy way to switch back when I've been sent a mobile-specific link other than editing the link by hand. Mobile links end up everywhere thanks to phone users just copy/pasting whatever they have, and desktop users suffer as a result.
Please, anyone who develops web sites, stop doing the mobile-specific URL nonsense. Make your pages adaptable to just work properly on all target devices.
If you insist on doing things this way with mobile-specific URLs, at least make it equally easy for desktop users to get off the mobile URLs as you make it for phone users to get on them.
"Remove .m. subdomain, serve mobile and desktop variants through the same URL" https://phabricator.wikimedia.org/T214998
It would be considered a non-tracking essential site function value too, so you wouldn't need to beg permission (contrary to what people who want us to be against privacy legislation will claim), and the site is probably already asking for permission anyway for other reasons so even that point is moot.
They asked for the mobile version - but they're on desktop.
Do you serve what the asked for? Or what you think they should want?
What if they actually want the mobile version - if you always send desktop to desktop, then they can't get mobile...
m.wikipedia isn’t the default, so it’s different from regular wikipedia.com redirecting a mobile user to the mobile version.
It’s easier for them to go to m.wikipedia.com than to change their user agent, especially if they aren’t that technical.
You rely on saving the user display preference as a cookie that persists across sessions.
They declare their preference on a device a single time on the site and that's remembered. None of this has anything to do with which URL is being used.
(Not to mention that following a link on a page like "en.m.wikipedia.org" isn't even user intent, it's author intent at most. But usually not even that, because the author just copied the link without even thinking whether it had an "m." in it or not.)
The simple answer is that you don't encode device specific intent in the URI, you put in in style sheets where it belongs.
Fixing this might be a good way to reduce bandwidth.