? bug PR-4.3-dev ? Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
22 Apr 2023

Pull Request for Issue #40442 redo of #40448 .

Summary of Changes

Other way around,
Unset Itemid for not matching menu, in the end of Router::build.

Testing Instructions

Please follow #40442
Also open Tags list URL /component/tags/tags and check paginations links (Tag menu should be unpublished or not exists)

Actual result BEFORE applying this Pull Request

the url contain Itemid

Expected result AFTER applying this Pull Request

the url does not contain Itemid

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
avatar joomla-cms-bot joomla-cms-bot - change - 22 Apr 2023
Category com_tags Front End
avatar Fedik Fedik - open - 22 Apr 2023
avatar Fedik Fedik - change - 22 Apr 2023
Status New Pending
avatar ch2856
ch2856 - comment - 22 Apr 2023

Tested, issue resolved, no itemid on pagination as well.

I didn't used the file it self, just changed line 185 since lines 155-157 brakes the site.

155-157 original:
$menuItem = $this->menu->getItem($query['Itemid']); if ($menuItem->query['option'] == 'com_tags') {

155-157 in the file here:
$menuItem = !empty($query['Itemid']) ? $this->menu->getItem($query['Itemid']) : false; if ($menuItem && $menuItem->query['option'] == 'com_tags') {

avatar richard67
richard67 - comment - 22 Apr 2023

@ch2856 Could you go to the issue tracker here https://issues.joomla.org/tracker/joomla-cms/40455 , then use the blue "Test this" button at the top left corner, and then select your test result (success as far as I understood) and finally submit? Thanks in advance.

avatar ch2856 ch2856 - test_item - 22 Apr 2023 - Tested successfully
avatar ch2856
ch2856 - comment - 22 Apr 2023

I have tested this item successfully on 24e6776


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

avatar richard67
richard67 - comment - 22 Apr 2023

@ch2856 Thank you very much for testing.

avatar richard67 richard67 - test_item - 23 Apr 2023 - Tested successfully
avatar richard67
richard67 - comment - 23 Apr 2023

I have tested this item successfully on 24e6776


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

avatar richard67 richard67 - change - 23 Apr 2023
Status Pending Ready to Commit
Labels Added: bug PR-4.3-dev ?
avatar richard67
richard67 - comment - 23 Apr 2023

RTC


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

avatar richard67
richard67 - comment - 23 Apr 2023

I've remove the release blocker label because as far as I can see the pagination links had the Itemid query parameter also in 4.2.9. But there the pagination links were broken. On a clean, current 4.3-dev branch they work without this PR but still have the Itemid, and with this PR they don't have the Itemid and the links still work.

avatar ch2856
ch2856 - comment - 23 Apr 2023

As far as I remember, before J4 we had no itemid using pagination. Since J4 the pagination for tags was broken so the solution here is the right one.

avatar richard67
richard67 - comment - 24 Apr 2023

As far as I remember, before J4 we had no itemid using pagination. Since J4 the pagination for tags was broken so the solution here is the right one.

@ch2856 As you can see I have successfully tested this PR, so I have no doubt that it is right and good. What I meant is that it's not a release blocker due to our definitions.

avatar sdwjoomla sdwjoomla - change - 24 Apr 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-04-24 23:47:27
Closed_By sdwjoomla
Labels Added: ?
avatar sdwjoomla sdwjoomla - close - 24 Apr 2023
avatar sdwjoomla sdwjoomla - merge - 24 Apr 2023

Add a Comment

Login with GitHub to post a comment