Page MenuHomePhabricator

Special:Nearby forces pages to open in desktop view
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

The page gets opened in the desktop view

What should have happened instead?:

It should have respected the current view setting and open the page in the mobile view

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Jdlrobson subscribed.

It needs to support generation of relative URIs rather than absolute to avoid hitting T60425: Mobile site does not automatically redirect to desktop version (and not possible to use browser "use desktop view")

Change #1054928 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/extensions/NearbyPages@master] Nearby: Stay on mobile domain when navigating to nearby page

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

So this happens because https://www.mediawiki.org/wiki/API:Info returns urls that do not take into account the mobile domain.
I also think there is no way for it to do that at the moment.

Instead, a simple url rewrite when the current domain doesn't match the main domain of the server, seems the easiest solution.

Change #1054928 merged by jenkins-bot:

[mediawiki/extensions/NearbyPages@master] Nearby: Stay on mobile domain when navigating to nearby page

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