Summary
An issue was reported where selecting Sort by → Last read on /search page saves that preference in browser local storage and automatically applies it to all subsequent full-page searches.
Because Last read only returns topics the user has previously visited, a brand-new user with no reading history gets “No results found” for every search. Since the Sort by dropdown is hidden when there are zero results, the user has no way to switch back and manually typing a sort operator like order:latest into the search bar does not override it.
Steps to reproduce
-
Log in as a brand-new user who has not opened or read any topics.
-
Navigate to
/search?q=welcome(or any search term with matches). Results load along with the Sort by dropdown. -
Change Sort by to Last read.
-
The page updates to “No results found” and the Sort by dropdown disappears.
-
Perform another search, or navigate away and return to
/search?q=welcome. It continues to show no results and no sort dropdown.
Expected behavior
-
The Sort by dropdown should remain accessible even when a search returns zero results so the user can change the sort order.
-
Ideally, sorting by Last read with empty read history should either display a helpful message or fall back to a default sort order rather than locking the user into an empty state.
Actual behavior The user is permanently stuck with “No results found” on all full-page searches until they manually clear their browser’s local storage.