For JRoute::_ to return the URL for the menu item associated with the default layout.
JRoute::_ returns the menu item for the non default layout.
Fresh install of Joomla 3.9.20
This is caused at lines 256 to 259 in \Joomla\CMS\Component\Router\Rules\MenuRules::buildLookup.
If a menu item id is set for is set for the default layout of a view, then its menu item id will be overwritten by any other layout from that view.
Labels |
Added:
?
|
Title |
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-28 07:45:26 |
Closed_By | ⇒ | alikon | |
Labels |
Added:
No Code Attached Yet
Removed: ? |
Thank you for raising this issue.
Joomla 3 is now in security only mode with no further bug fixes or new features.
As this issue doesn't relate to Joomla 4 it will now been closed.
If we are mistaken and this does apply to Joomla 4 please open a new issue (and reference this one if you wish) with updated details for testing in Joomla 4.
cc @zero-24