Page MenuHomePhabricator

[MEX] M5 - Make the browser "back" button function smoothly with the new UX
Open, Needs TriagePublic

Description

Pressing the browser "back" button or swiping backwards in the current MEX implementation does not function as expected for a good web browsing experience - the user agent is redirected to the previous URL (which might be a search page, another item, or a different website entirely).

Processes browser navigation events (presumably using the History API) to handle them in a meaningful way for the MEX UX.

Acceptance Criteria

  • pressing / swiping back from a MEX modal closes the modal
  • pressing / swiping back from the main item view navigates to the previous page in the browser
  • the behaviour is covered by tests as far as possible.

Details

Other Assignee
Sadiya.Mohammed_WMDE
Related Changes in Gerrit:

Event Timeline

Arian_Bozorg renamed this task from [MEX] Make the browser "back" button function smoothly with the new UX to [MEX] M5 - Make the browser "back" button function smoothly with the new UX.Jan 23 2026, 12:56 AM

@Arian_Bozorg good question. I'm not really sure. @Lucas_Werkmeister_WMDE expressed some skeptiscism about this and T414455, which I think is fair. It might make sense to think about all three tickets as a group and decide what experience we want to have before working on any of them individually.

@Arian_Bozorg good question. I'm not really sure. @Lucas_Werkmeister_WMDE expressed some skeptiscism about this and T414455, which I think is fair. It might make sense to think about all three tickets as a group and decide what experience we want to have before working on any of them individually.

Story time note: we would like to try to implement just this task first, without T414455 or T414456. The implementation probably use the History API, but perhaps without actually changing the URL as you move through the modal.

Change #1275375 had a related patch set uploaded (by Sadiya.mohammed13; author: Sadiya.mohammed13):

[mediawiki/extensions/Wikibase@master] Close MEX modal on browser back

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