PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar devesht-ML
devesht-ML
16 Apr 2026

Resolves #45609

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

This PR fixes the duplicate URL issue between Tagged Items menu and Popular Tags module. The fix removes the unnecessary ?types[0]=1 parameter from the URL when a "Tagged Items" menu item is configured to display only "Articles" content type.

Technical change:

  • Modified components/com_tags/router.php (Joomla 4) / components/com_tags/src/Service/Router.php (Joomla 5)
  • Added condition to remove types parameter when it contains only value 1 (articles)
  • Prevents the parameter from being added to SEF URLs

Testing Instructions

Prerequisites:

  1. Create a tag (e.g., "test-tag")
  2. Create 2-3 articles and assign them to "test-tag"
  3. Enable/Publish the "Popular Tags" module

Test Setup:

  1. Create a menu item: Tags → Tagged Items
  2. Select "test-tag" as the tag
  3. Under "Content Type Options", set "Select Content Type" to "Article" only
  4. Save the menu item

Before applying this PR:

  1. Click the menu item → URL contains ?types[0]=1 parameter
  2. Click the same tag from Popular Tags module → Clean URL (no parameter)
  3. Both URLs show same content (DUPLICATE CONTENT ISSUE)

After applying this PR:

  1. Clear Joomla cache (System → Clear Cache)
  2. Click the menu item → Clean URL (no ?types[0]=1 parameter)
  3. Click the same tag from Popular Tags module → Same clean URL
  4. Both URLs now match (ISSUE RESOLVED)

Actual result BEFORE applying this Pull Request

Menu URL :- http://localhost/joomla/index.php/tagged-items-articles?types[0]=1
Screenshot BEFORE Fixing in Menu
befor fix menu issue

Module URL :- http://localhost/joomla/index.php/tagged-items-articles
Screenshot BEFORE Fixing in Module
before fix module issue

Results AFTER Fixing the issue

Menu URL :- http://localhost/joomla/index.php/tagged-items-articles
Screenshot AFTER Fixing in Menu
after fix menu

Module URL :- http://localhost/joomla/index.php/tagged-items-articles
Screenshot AFTER Fixing in Module
after fix module

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar devesht-ML devesht-ML - open - 16 Apr 2026
avatar devesht-ML devesht-ML - change - 16 Apr 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Apr 2026
Category com_tags Front End
avatar devesht-ML devesht-ML - change - 16 Apr 2026
The description was changed
avatar devesht-ML devesht-ML - edited - 16 Apr 2026
avatar devesht-ML devesht-ML - change - 16 Apr 2026
The description was changed
avatar devesht-ML devesht-ML - edited - 16 Apr 2026
avatar devesht-ML devesht-ML - change - 16 Apr 2026
Labels Added: PR-5.4-dev

Add a Comment

Login with GitHub to post a comment