Legacy Knowledge Base
Published Jun. 30, 2025

Category filter value in a page URL should not change when filtering categorized web content in a collection display fragment after republishing the page

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

  • When I filter categorized web content in a Collection Display Fragment the page URL includes a category filter value. If the page is republished without making any modifications, the category filter value changes. I would like to have the value unchanged when I republish the page without making any changes to it.

Reproduction Steps:

  1. Set up DXP 7.4 with the latest update.

  2. Go to Categorization --> Categories and create vocabulary and add to it a category.

  3. Go to Content & Data --> Web Content, and add basic web content, then add the category to it.

  4. Go to Site Builder --> Collections and add a collection (Dynamic or Manual) with Web Content Article as the Item Type and Basic Web Content as the Item Subtype.

  5. Go to Site Builder --> Pages and add content (blank) page and add to it a collection display fragment, then map to it the created collection.

  6. Add a collection filter fragment to the page, select the created collection as the Target Collection and Catefory as Filter, then in the Popup select the Vocabulary then click on "Select this level".

  7. Publish the page.

  8. View the page, select the category, and observe the URL.

Checkpoint: The URL looks like this: http://localhost:8080/testcoll?filter_category_33083=33018

  1. Edit the page, publish it without making any modifications, and select the category again.

Actual Result: The value of the filter_category_xxxxx=aaaaa parameter is changed to filter_category_yyyyy=aaaaa

Expected Result: The value of the filter category should remain the same.

I am attaching a video illustration: filterCategory.mp4

Environment

  • Liferay DXP 7.4

Resolution

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base