sbp-flarum-search/js/dist
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
..
admin.js feat: make ngram min_gram configurable via admin setting 2026-04-10 13:19:22 +02:00
admin.js.map feat: make ngram min_gram configurable via admin setting 2026-04-10 13:19:22 +02:00
forum.js fix: default search sort to latest and keep dropdown label in sync 2026-04-15 17:21:10 +02:00
forum.js.map fix: default search sort to latest and keep dropdown label in sync 2026-04-15 17:21:10 +02:00