Repository navigation
Shared queries: combine user search structurally - #9544
Merged
Merged
Conversation
Member
|
Thanks! |
Contributor
Author
|
Thank you, and yes, you are right. I was able to reproduce the issue locally: in the HTML view of a shared query, the pagination links (“First”, “Previous”, “Next”) were generated without the search parameter. As a result, when a visitor searched within a share and went to the next page, the search was lost and all entries of the share were listed again. I opened #9545 to fix it: the pagination links now keep the visitor’s search. |
Alkarex
pushed a commit
that referenced
this pull request
Nov 9, 2026
Fix the paging bug noticed in #9544. In the HTML view of a shared user query, the pagination links did not include the `search` parameter, so the user search was lost when going to the next page. The pagination links now keep the user search (URL-encoded). The common part of the URLs is factored out, using `&` consistently. Tested locally with a shared query of 60 entries and `search=x`: the second page now only shows matching entries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #9541.
In
p/api/query.php, the optionalsearchparameter of a shared user query was appended as a string to the user query's own search, and the result was parsed again.This keeps both searches as parsed objects and combines them with a structural AND via
FreshRSS_BooleanSearch::add(), avoiding the serialise/re-parse round trip. Adds a test for combining Boolean searches withadd().