User tests: Successful: Unsuccessful:
Pull Request for Issue #17599
Changed libraries\src\Component\Router\Rules\MenuRules.php not to replace Itemid if Itemid is supplied in passed query.
J!3.7.5 - Search Engine Friendly URLs OFF.
Create some 'uncategorised' articles.
Create two menuitems in Main Menu of type 'Category List' (and for easier detection differentiate the second, showing Category Title) pointing to 'uncetegorised': 'Show-uncategorised-1' (Itemid=108) and 'Show-uncategorised-2' (Itemid=109)
When user clicks each menu it goes to the right page and all the menuitems continue to work correctly.
If you click 'Show-uncategorised-1' (lower Itemid) all is fine.
If you click 'Show-uncategorised-2' (higher Itemid) ti goes to the right page but the menu link generated in the new page for the menuitem with higher Itemid ('Show-uncategorised-2') is wrong: menu link generated for 'Show-uncategorised-2' now points to'index.php?option=com_content&view=category&id=2&Itemid=108'. That's obviously wrong, it should use Itemid?109).
So now if you click on 'Show-uncategorised-2' you actually go to 'Show-Category-1' !
J!3.7.5 - Search Engine Friendly URLs OFF.
none
The same problem arises with other menu types (tried with multiple Submit Article menuitems: same malfunctioning).
This problem is common to issue: ' Router incorrectly tries to "fix" Itemid #16774 '.
Everything works well if Search Engine Friendly URLs is ON.
Category | ⇒ | Libraries |
Status | New | ⇒ | Pending |
Title |
|
Category | Libraries | ⇒ | Libraries Unit Tests |
Labels |
Added:
?
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-30 13:11:30 |
Closed_By | ⇒ | LivioCavallo | |
Labels |
Added:
?
|
This PR solves #17746 too.