Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination not working in result page #30

Open
wezetel opened this issue Sep 24, 2024 · 1 comment
Open

Pagination not working in result page #30

wezetel opened this issue Sep 24, 2024 · 1 comment

Comments

@wezetel
Copy link

wezetel commented Sep 24, 2024

Steps to reproduce the issue

Perform a search which has more than 10 results

Expected result

Result page with working pagination

Actual result

Selecting next page shows no results

System information (as much as possible)

Newest J5 ( but will probably be the same for newest J4

Additional comments

Url Parameters are missing in the pagination and need to be added.
See: https://docs.joomla.org/J5.x:Pagination_class_removes_query_parameters

@wezetel
Copy link
Author

wezetel commented Sep 24, 2024

Just found a solution which seems to work for me.
I added following lines to components\com_search\src\View\Search\HtmlView.php around line 280:

$this->pagination->setAdditionalUrlParam('searchword', $state->get('keyword'));
$this->pagination->setAdditionalUrlParam('searchphrase', $state->get('match'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant