Stop posting en.m.wikipedia.org links!
Stop posting en.m.wikipedia.org links!
"m." subdomains are just a totally outdated concept and I wish they would disappear entirely. It is trivial for the web server to detect what device type, OS, screen size etc. the user is on and serve content accordingly.
Yes. Some might argue otherwise, but I'm with you there except…
… sometimes the mobile version of a page is preferable as it cuts out a load of crap including adverts and other distractions, just giving you the information actually being linked to. So "m." type links or other "force mobile view" options can be accidentally useful for a purpose beyond what their designer intended.
> It is trivial for the web server to detect what device [properties]
No, it is not trivial to do this reliably server-side with no client-side assistance. It is much better where possible to do it client-side with well-designed CSS (maybe, but not necessarily, making use of media queries and such).
There is an exception here too: if you want to send less data to the mobile client, instead of sending everything you would send to others and adjusting styles to alter the display for small screens and finger-based input, then you need to either try detect the UA's properties or given the user an explicit "full or minimal" option (which may put you back to offering an "m." URL or equivalent so a user can jump direct to the minimal version).
That's more convenient than having to change my user agent or simply having mobile versions unavailable unless I shrink my browser window down to phone-sized.
https://www.perficient.com/insights/research-hub/mobile-vs-d...
I suspect the number is lower on HN, but it’s still a losing battle. It’s also fairly easy to miss the “m.” when you’re copying a URL.
or you can do this client-side with an extension or tampermonkey sort of fix.
To anyone pasting in wp links: be kind, take the m out of the url when sharing links.
https://chrome.google.com/webstore/detail/mobile2desktop-wik...
I stopped using it a while ago because it wound up breaking something else, I don't remember what it was exactly though.
But honestly this is just something Wikipedia itself should handle -- if I'm logged in to Wikipedia, give me a setting to "always redirect mobile to desktop".
Wikipedia created the problem with the "m" subdomain, they ought to be the ones fixing it too.
I literally wrote a script that does the exact opposite of what you suggest!
I have one script that runs on all pages and converts all Wikipedia links to the mobile version, while another that runs on Wikipedia only and automatically redirects to the mobile version if I somehow land on a non-mobile Wikipedia page. It also has a shortcut to switch between mobile and desktop, and takes the referrer into account so that once I've switched to the desktop version links aren't pointing to the mobile version again. It has a couple more features like a shortcut to edit the page, since I often contribute.
Same. Once I discovered that, and that the mobile site didn't have the random stalls from loading login.wikimedia.org, I started using it exclusively. The hardest part was retraining my muscle memory to type !wm instead of !wiki when searching for something.
The one to rewrite all WP links on all pages is part of a larger script which I haven't cleaned up yet, but this already provides an automatic switch to mobile if you happen to load a desktop version of the page.
If I'm on a desktop, have a moment, and see one that's particularly egregious, I often respond with a comment to the full version linking to the appropriate table of contents anchor.
The only sense in which a mobile link "forces" you to see a specific design is that en.wikipedia will redirect to en.m.wikipedia on mobile devices, but the inverse is not the case: en.m.wikipedia will not redirect to en.wikipedia on a desktop computer.
But here's the thing: the only way for me to ensure that all Wikipedia pages will use the mobile design on my desktop is to either 1. create an account to change my theme preference and always be logged in on all devices, or 2. use some browser extension. Both of those options are roughly as difficult, and option 2 is also available for you to ensure that you always see the desktop design!
And change any Reddit ones to point to old.reddit.com.
IMO the link that results in the users preference being followed should always be preferred, not the link that forces the preference of the poster.