[Regression] If the link does not have a view then add active menu item#19501
[Regression] If the link does not have a view then add active menu item#19501csthomas wants to merge 1 commit intojoomla:stagingfrom
Conversation
|
I have tested this item 🔴 unsuccessfully on 1329077 Kunena This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19501. |
|
ps Kunena 5.1 RC2 is working correctly, because we added now itemid: Kunena/Kunena-Forum@3161bb5 |
|
I do not know which link does not work for you, but there is some issue in kunena routing because I can not generate a correct link by How to check? I tested it on 3.8.3. On 3.8.4 with this PR the link is always |
|
I have tested this item 🔴 unsuccessfully on 1329077 var_dump(JRoute::_('index.php?option=com_content'));
var_dump(JRoute::_('index.php?option=com_content&view=test'));
var_dump(JRoute::_('index.php?option=com_content&task=test'));
var_dump(JRoute::_('index.php?view=test'));
var_dump(JRoute::_('index.php?task=test'));
var_dump(JRoute::_('index.php?option=com_content&test=1'));Produces: In Joomla! 3.8.3: So it's broken yet again; no offense but I'd refrain from making any more commits until your original one is reverted. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19501. |
Pull Request for Issues #19499 and #19496
Summary of Changes
Add active menu item to incomplete link, ex:
JRoute::_('index.php?option=com_kunena');This PR is a little similar to #19498 but prevents to add an active
Itemidto full link likeJRoute::_('index.php?option=com_content&view=archive');when there is no menu item for the archive view.The full link will still not depend on the page it was generated on.
Testing Instructions
See at issues #19499 and #19496.
Expected result
Issues are fixed.