Page MenuHomePhabricator

use pushState() to make Back button history available
Closed, DeclinedPublic

Description

Problem: after modifying a filter, while the URL changes, the back button is still disabled and clicking it does not restore the prior filter settings

Steps to reproduce:

  1. at http://test.wikipedia.org/wiki/Special:Preferences enable new recent changes filters
  2. in a new tab open http://test.wikipedia.org/wiki/Special:RecentChanges
  3. modify any filter (for example hide logged in users)
  4. the URL changes but the back button is still disabled

Expected results: the Back button works. When clicked once it comes back to the old setting (the logged in users are shown again)

Proposed implementation: https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_pushState()_method

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Possibly relevant comment T200986#4473089

At one point early on, the back button did this (it went to the previous filter setting), but people hated it because 1) they expected the back button to take them to the previous logical page, away from the RC page and 2) it went through filter changes one by one, so undoing three filter changes took three back button clicks

MMiller_WMF added a subscriber: MMiller_WMF.

Yes, the team considered both these behaviors, and decided that the current behavior of the back button is preferable (though there are pros and cons to both). So we are declining this ticket. But thank you for bringing it.