question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Back button to page containing List reverts to original sort/filter state

See original GitHub issue

If you navigate back to a page containing a List using the back button, the list is presented in its original order and filter state, not the state when the user left it (i.e. by selecting an item in the sorted/filtered list).

This is a well-known problem and not List.js’s fault, but in order to work around this we need access to the current filter and sort state, so we can encode them into the location hash.

I found the buttons var in the sort module but it does not seem to be exposed/accessible from the List object in the browser.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
javvecommented, Feb 26, 2016

👍 👋

0reactions
rutger1140commented, Dec 3, 2015

Thanks, I did the same thing, also rather specific 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add sorting, filtering, and paging - ASP.NET MVC with EF Core
In this tutorial you'll add sorting, filtering, and paging functionality to the Students Index page. You'll also create a page that does ...
Read more >
Using the BACK button to revert to the previous state of the page
Is there a way to make the BACK button go back to the previous "state" of the page i.e., undo the visibility/display changes?...
Read more >
[react-instantsearch-hooks] Back button doesn't return to the ...
It should return to just Insignia™ filtered, but instead returns to no filters at all. One thing we noticed: if you check history.state...
Read more >
4 Design Patterns That Violate “Back” Button UX Expectations
A user's “Back” button expectations weren't honored at Walmart. The user's path was “product list > product page > reviews subpage”, ...
Read more >
History back() Method - W3Schools
The history. back() method loads the previous URL (page) in the history list. The history. back() method only works if a previous page...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found