Updates Requested bug Maintainers Checked Small PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar 810
810
21 Sep 2021

Pull Request for Issue #35570 .

Summary of Changes

Allow itemid from other menu then from the main menu. Now its getting overruled by the default menu item.

Testing Instructions

Apply patch.

Add hardcode html:

<a href="index.php?option=com_kunena&view=topic&layout=reply&catid=2&id=37&Itemid=151"> test </a>

Actual result BEFORE applying this Pull Request

<a href="/j4/index.php?option=com_kunena&amp;view=topic&amp;layout=reply&amp;catid=2&amp;id=37&amp;Itemid=101"> test </a>

Expected result AFTER applying this Pull Request

<a href="/j4/index.php?option=com_kunena&amp;view=topic&amp;layout=reply&amp;catid=2&amp;id=37&amp;Itemid=151"> test </a>

Documentation Changes Required

avatar 810 810 - open - 21 Sep 2021
avatar 810 810 - change - 21 Sep 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Sep 2021
Category Libraries
avatar PhilETaylor
PhilETaylor - comment - 23 Sep 2021

The comments being removed were added in #12020 by @wilsonge and the code is from #18260 from @csthomas

It might be useful to get their comments on this change, as it seems the code being removed/changed has history and has a lot of thought put into it previously.

It would also be worth checking those two PR's above, and ensuring that this PR doesnt reintroduce the bugs those fix.

avatar 810
810 - comment - 1 Nov 2021

Any comments? I don't know why you always needs the active menu. Thats only needed, when have a simple website.

If you have complicated website with multiple menus, then this "feature" (active menu item matches the requested query) doesn't make any sense for me.

avatar xillibit
xillibit - comment - 20 Dec 2021

The line before the change in this PR is identical on J! 3.10.x, the issue was in Kunena, i have found a weird change in KunenaRoute which have reverted it which solve the issue. But we still lose the Kunena menu when we are on views which use pagination and when going to anther page

avatar HLeithner
HLeithner - comment - 27 Jun 2022

This pull request has automatically rebased to 4.2-dev.

avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar HLeithner HLeithner - change - 27 Jun 2022
Labels Added: ? ?
avatar bembelimen
bembelimen - comment - 21 Oct 2022

Thank you for your PR.

I agree that we should not throw away valid Itemids but we have to check if they're valid. Could you please improve your PR in that regards?

avatar HLeithner
HLeithner - comment - 2 May 2023

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

avatar HLeithner
HLeithner - comment - 30 Sep 2023

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

avatar Hackwar Hackwar - change - 19 Mar 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-03-19 14:46:27
Closed_By Hackwar
Labels Added: Updates Requested bug Maintainers Checked Small PR-4.4-dev
Removed: ? ?
avatar Hackwar
Hackwar - comment - 19 Mar 2024

Closing since no response for several years now.

avatar Hackwar Hackwar - close - 19 Mar 2024

Add a Comment

Login with GitHub to post a comment