Legacy Knowledge Base
Published Sep. 10, 2025

Incorrect Pagination Behavior in the SearchResultsPortlet

Written By

Ahmed Abdin

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • I have an issue with the search results portlet pagination. When searching for an item by selecting a page after page 20, the first page results are shown instead of the selected page.

Steps to reproduce:

  1. Set up 2024.q2.13, set this property into the portal-ext.properties: search.container.page.delta.values=4,20,40,60 to see a long dropdown list, and start the instance
  2. Add 90+ documents to the site.
  3. Go to the default search page
  4. In the default search options, check “Allow Empty Searches
  5. Set the delta to 4 entries
  6. Search with an empty text or a general keyword
  7. View the pagination in the search results, open the dropdown, and scroll further down in the list
  8. Click on one of those links that were rendered when scrolling further down.

Expected result:

Href of the page link should be something like /search?q=test&delta=4&start=28 as it is in the beginning of the list.

Actual result:

Href of the page link is something like q=test&delta=4&_com_liferay_portal_search_web_search_results_portlet_SearchResultsPortlet_INSTANCE_vG7TCea4Umyb_start=28  where the parameter is added to a namespace.

Environment

  • Liferay Quarterly Release 2024.q2.13

Resolution

  • The case has been addressed and fixed by LPD-56005. Kindly upgrade to 2025.q1.14-lts+ or request a hotfix.
Did this article resolve your issue ?

Legacy Knowledge Base