Commit Graph

12 Commits

Author SHA1 Message Date
Bart van Bragt c5643bed31 fix: default search sort to latest and keep dropdown label in sync
- Search with no explicit sort now defaults to latest (updated_at desc)
  on both backend and frontend, matching the forum UX expectation.
- "All discussions" link from the search box routes to /?q=...&sort=latest
  so the sort dropdown shows "Latest" immediately after submission.
- extendDiscussionState injects sort=-lastPostedAt into API params when
  no sort is present, keeping direct-URL navigation (?q=anan) consistent
  with the backend default.
- Backend guard changed from phpSortField===null to empty($sorts), which
  is the correct sentinel since $sorts is the authoritative ES sort list.
2026-04-15 17:21:10 +02:00
Ian Morland f500d7f956 fix: revert back to not using the elastic endpoint for filtering, at least until we support tags in the search database 2022-11-21 12:37:52 +00:00
Ian Morland 23dd403417 fix: override endpoint not used correctly 2022-11-18 09:29:19 +00:00
Ian Morland 886e78d6fb Format js 2022-05-03 09:13:50 +01:00
Daniel Klabbers 868713da11 fix: search for byobu page
Fixes the index for byobu.
2021-11-16 20:22:22 +01:00
Daniel Klabbers 5600236bb8 exclude byobu from elastic for now 2021-11-11 13:12:36 +01:00
Daniel Klabbers 050482dd4a fix calling xhr still 2021-11-10 14:39:47 +01:00
Daniel Klabbers bad10ef03d only override the search on the frontend if its not already been handled by the backend to prevent duplicate queries 2021-11-10 13:36:34 +01:00
Daniel Klabbers a03de74f0b clean up js 2021-11-10 12:39:41 +01:00
David Wheatley c96a0f54bf
fix: indexpage search not hitting custom endpoint 2021-10-31 22:47:46 +00:00
David Wheatley 70bffb7aa0
hotfix: don't use custom search endpoint when there is no search query 2021-10-22 18:57:43 +01:00
David Wheatley e3f74b5f07
feat: override discussion search page 2021-10-21 17:58:37 +01:00