A free, self-hostable news aggregator…
Keep search and state filters when marking articles as read (#9007)
TowyTowyad78838ffc01
diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.phpindex 4d50d9a02..33f526781 100644--- a/app/Controllers/entryController.php+++ b/app/Controllers/entryController.php@@ -202,6 +202,15 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController {}if (!$this->ajax) {+ // Preserve the active search and read/favourite state filters across the redirect+ $search = Minz_Request::paramString('search', plaintext: true);+ if ($search !== '') {+ $params['search'] = $search;+ }+ $stateParam = Minz_Request::paramInt('state');+ if ($stateParam !== 0) {+ $params['state'] = $stateParam;+ }if (FreshRSS_Context::userConf()->sticky_sort) {if (Minz_Request::hasParam('order')) {$params['order'] = Minz_Request::paramString('order', plaintext: true);