Returning to the Right List State
A detail page can keep a meaningful link back to the list or search from which it was opened.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a filtered collection
A user inspecting chapter 17 from the third page of an author filter may want to return to that state. The filter and page can be represented in the list URL. Search query values supply that portable context.
Prefer a predictable destination
A directly opened article can provide a default parent link when there is no originating list. Collection and detail links describe the durable path readers can recognize.[1][2]
Preserve the list's filter state in the navigation contract
A reader opens item 42 from a list sorted newest and filtered to rails. After saving an edit, a return path can recover those selections if they are represented in the URL or stored intentionally. Use an approved internal destination policy when accepting return targets. See query filters.
Start: /items?tag=rails&sort=new
Open detail for 42
Edit and return
Restored list retains both tag and sort
Test direct entry and stale list state
A reader can enter a detail page with no originating list. Choose a clear fallback. An updated item may no longer match its original filter, so returning correctly need not display that item.