User tests: Successful: Unsuccessful:
While building a multi-lingual site with tags we found out that the mod_tags_popular module was not producing SEF URLs due to missing the language string. When the menu items had their language set to All (*) it worked fine but when changing them to English (en-GB) and Dutch (nl-NL) the links are no longer working. After some investigation I found out that the Tags RouteHelper does not take the current language into account. This fix resolves that.
List All Tags
and set the language to EnglishCompact List of Tagged Items
and set the language to English, select a tag used by the English articles and set Content Type
to Articles
List All Tags
and set the language to DutchCompact List of Tagged Items
and set the language to Dutch, select a tag used by the Dutch articles and set Content Type
to Articles
Tags Popular
and set the language to English and assign it to a menu item that is set in step 7Tags Popular
and set the language to Dutch and assign it to a menu item that is set in step 9component/tags/tag
component/tags/tag
The URLs in the module do not show the correct SEF URL but instead contain component/tags/tag
The URLs in the module do show the correct SEF URL according to their menu item
None
Status | New | ⇒ | Pending |
Category | ⇒ | com_tags Front End Layout Libraries Modules Plugins |
Title |
|
It sounds like it, they should test this
Labels |
Added:
?
|
Category | com_tags Front End Layout Libraries Modules Plugins | ⇒ | com_tags Front End Layout Modules Plugins |
@roland-d I spent sometime to test this PR today and it works good for me. The only thing left is that in RouteHelper
class, we have getTagsRoute()
method, I think we should add support for $language parameter, too. Could you please look at it? This method is not used in the core, but I think the code should be consistent. After that, I can mark my test success for the PR. Thanks.
@joomdonation I have added the language as option to the getTagsRoute()
as well. I did not look at it before as I am not using it either :)
I have tested this item
I had the same issue for a very long time. I would like to thank to all the contributors. I have a question: Would this fix be affecting Joomla 3.10 as well in the upcoming release? Or only the 4.1?
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
@wilsonge There is no b/c break here because the default value mimics the old behavior. So by not specifying the language the function works like it currently does.
In 8.1 this breaks. No fix for a bugfix release. In my opinion something for 5.0 because of 8.1 (see: https://onlinephp.io/c/e5394), but moving to 4.2 so you can decide.
Labels |
Added:
?
Removed: ? |
I would like to ask one more time, will this fix be applied to 3.10 as well?
If possible, then the deprecated function should call the new function and not have duplicated code.
So the change is now backward-compatible. Do you want to have it in 4.1 @bembelimen ? Or should we re-test it for 4.2?
Status | Ready to Commit | ⇒ | Pending |
Back to pending as some code got changed.
Labels |
Removed:
?
|
I have tested this item
Works great now, thanks !
I have tested this item
I have opened this same issue 1,5 years ago. I am still looking forward to a solution for this since then. But I have to use Joomla 3.10 for one more year for some specific reasons. Please create an update for Joomla 3.10 as well since you already know how to modify the code. Thank you for everyone who have contributed for the solution.
Two good tests. Let's get this in. Thankyou!
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-06-20 20:58:21 |
Closed_By | ⇒ | wilsonge |
LGTM overall.
In terms of the b/c. what's the change of
*
compared to the query not existing before (i.e. if people in the JLayout don't update their template override is there a behaviour change?)