Page MenuHomePhabricator

Can't go back from starting URL containing hash fragment
Open, LowPublicBUG REPORT

Description

Expected: Return to the first URL as it does on desktop.
Actual: No change.

Event Timeline

Change 769813 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/NearbyPages@master] Upgrade Nearby to use Codex and Vue 3

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

Jdlrobson renamed this task from Back button behaviour on Nearby doesn't work as expected to Back button behaviour on Nearby doesn't work as expected on mobile.Aug 17 2022, 4:53 PM
Jdlrobson added a project: MobileFrontend.

This looks like a MobileFrontend bug. Can't replicate in desktop.

Jdlrobson renamed this task from Back button behaviour on Nearby doesn't work as expected on mobile to Can't go back from starting URL containing hash fragment.Oct 4 2022, 8:58 PM
Jdlrobson lowered the priority of this task from High to Low.
Jdlrobson added a project: NearbyPages.
Jdlrobson updated the task description. (Show Details)

Expected: Return to the first URL as it does on desktop.

Maybe it used to? I think it no longer does

https://en.wikipedia.beta.wmflabs.org/wiki/Special:Nearby?safemode=1#/coord/51.06,-0.10

Additionally it seems the desktop version offers slightly worse experience than the mobile now: Mobile returns to /Special:Nearby?safemode=1# (at least it remains on the special page) while the desktop completly returns to a blank tab (out of the domain).

Jdlrobson added a subscriber: matmarex.

Yes this looks like it has become a more general issue here (notice how clicking the browser back button on https://en.m.wikipedia.beta.wmflabs.org/wiki/Spain#/editor/0 doesn't work as expected, but clicking {F36704809} on https://en.m.wikipedia.beta.wmflabs.org/wiki/Spain#/editor/0 does.

We likely need a fix inside https://www.mediawiki.org/wiki/OOjs_Router to handle both these cases.
@matmarex added this code to MobileFrontend [1] but it seems this should be upstreamed to OOjs Router (and possibly fixed given whatever has changed recently).

[1] https://gerrit.wikimedia.org/g/mediawiki/extensions/MobileFrontend/+/b37b5c1022eead96a63c45c903b60dca851fb46e/src/mobile.startup/OverlayManager.js#400