Skip to content

[5.3] Update tag router to restrict lossy matches to menu items set to any#42162

Merged
rdeutz merged 4 commits intojoomla:5.3-devfrom
shane-clickingmad:40750-pagination-issue
Aug 24, 2025
Merged

[5.3] Update tag router to restrict lossy matches to menu items set to any#42162
rdeutz merged 4 commits intojoomla:5.3-devfrom
shane-clickingmad:40750-pagination-issue

Conversation

@shane-clickingmad
Copy link
Contributor

Pull Request for Issue #40750 .

Summary of Changes

Only populate the menu items into $this->lookup if they are a direct match, or return_any_or_all is set to any.

Testing Instructions

Setup two tags.
Setup a menu item point to a singular tag
Setup a second menu item pointing to both tags, match type All
Populate articles into the first tag to show pagination within page (can change global config list limit to 5 to make this easier)
Navigate to the first menu item on the front end.
Observe pagination links

Actual result BEFORE applying this Pull Request

Pagination URL incorrectly pointing to second menu item (with multiple tags selected), instead of the current menu item.
Page: /tag-1 pagination link: /tag-1-and-2?start=5

Example: Page: /tag-1 pagination link: /tag-1?start=5

Expected result AFTER applying this Pull Request

Pagination URL's now correctly paginate through the current menu item.

Example: Page: /tag-1 pagination link: /tag-1-and-2?start=5

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@Hackwar Hackwar self-assigned this Oct 25, 2023
@Fedik Fedik added the bug label Nov 10, 2023
@exlemor
Copy link

exlemor commented Apr 21, 2024

Hi @shane-clickingmad, I tried to follow your testing instructions step by step but I think something is missing as it did not yield what was supposed to be happen ;-(

Can you please check them so that I can test it again very soon.

(sorry)

@HLeithner HLeithner changed the title Update tag router to restrict lossy matches to menu items set to any [4.4] Update tag router to restrict lossy matches to menu items set to any Apr 24, 2024
@ghost
Copy link

ghost commented Aug 29, 2024

I have tested this item ✅ successfully on e0023c9

Without patch With patch
without with
Pagination URL show "menutwotags" Pagination URL show "menuonetag"

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42162.

@HLeithner HLeithner changed the base branch from 4.4-dev to 5.2-dev November 15, 2024 13:21
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 5.2-dev.

@HLeithner HLeithner changed the title [4.4] Update tag router to restrict lossy matches to menu items set to any [5.2] Update tag router to restrict lossy matches to menu items set to any Nov 15, 2024
@HLeithner HLeithner changed the base branch from 5.2-dev to 5.3-dev April 15, 2025 16:16
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 5.3-dev.

@HLeithner HLeithner changed the title [5.2] Update tag router to restrict lossy matches to menu items set to any [5.3] Update tag router to restrict lossy matches to menu items set to any Apr 15, 2025
@drmenzelit
Copy link
Contributor

I have tested this item ✅ successfully on 4d1d589

Before:
/tag-pbf
/tags/pbf?start=5

After:
/tag-pbf
/tag-pbf?start=5


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42162.

@obuisard
Copy link
Contributor

I have tested this item ✅ successfully on 4d1d589


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42162.

@richard67
Copy link
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42162.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Aug 23, 2025
@rdeutz rdeutz merged commit 22d8a8c into joomla:5.3-dev Aug 24, 2025
39 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Aug 24, 2025
@rdeutz
Copy link
Contributor

rdeutz commented Aug 24, 2025

Thanks

@richard67 richard67 added this to the Joomla! 5.3.4 milestone Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants