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

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

 

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0