Issues with Tags at SEF multilingual websites

General questions regarding the use of languages in Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Issues with Tags at SEF multilingual websites

Post by sokrates_mx5 » Mon Mar 29, 2021 9:32 am

The site is multilingual (English-Spanish). Associations have been set between the equivalent menus.

Category Blog with Tags
Further selection of the same category by different tags.

English Menu

Menu: News → Spain
Menu Item Type: Category Blog
Chosen Category: News
Tags: Spain
Link: index.php?option=com_content&view=category&layout=blog&id=9&filter_tag[0]=37

Menu: News → Andalucía
Menu Item Type: Category Blog
Chosen Category: News
Tags: Andalucía
Link: index.php?option=com_content&view=category&layout=blog&id=9&filter_tag[0]=35

Spanish Menu
Menu: Noticias → España
Menu Item Type: Category Blog
Chosen Category: Noticias
Tags: España
Link: index.php?option=com_content&view=category&layout=blog&id=11&filter_tag[0]=34

Menu: Noticias → Andalucía
Menu Item Type: Category Blog
Chosen Category: Noticias
Tags: Andalucía
Link: index.php?option=com_content&view=category&layout=blog&id=11&filter_tag[0]=35

Behaviour
Before the Spanish equivalent menus have been published, then when clicking on Spain in the menu then shows Spain in the Category heading and the articles with the tag Spain is listed in Blog view. The same is the case when clicking on Andalucía in the menu. The articles opens as expected. So far so good.

When the equivalent menus in both the the English and Spanish are published, then strange tings happen.

When swapping between the language versions of the News Menus, then one doesn't come to its equivalent, one comes to the last of the Category Blog being published, e.g. when swapping from News → Spanish to Noticias → Espanol one comes to Noticias → Andalucía. This problem only seems to appear among Menus that has got the same Category set, even though further selection is made with different Tags. The Sub-menus with its own Category like Economy works fine.

I have tried this on another fresh Joomla multilingual installation and the behaviour is the same.

It does not make a different of one change these menus to Menu Type: Category List.

Category List with Tags
Further selection of the same category by different tags.

English Menu
Menu: News → Spain
Menu Item Type: Category List
Chosen Category: News
Tags: Spain
Link: index.php?option=com_content&view=category&layout=blog&id=9&filter_tag[0]=37

Menu: News → Andalucía
Menu Item Type: Category List
Chosen Category: News
Tags: Andalucía
Link: index.php?option=com_content&view=category&layout=blog&id=9&filter_tag[0]=35

Spanish Menu
Menu: Noticias → España
Menu Item Type: Category List
Chosen Category: Noticias
Tags: España
Link: index.php?option=com_content&view=category&layout=blog&id=11&filter_tag[0]=34

Menu: Noticias → Andalucía
Menu Item Type: Category List
Chosen Category: Noticias
Tags: Andalucía
Link: index.php?option=com_content&view=category&layout=blog&id=11&filter_tag[0]=35

Behaviour
The same dysfunctional behaviour as when Category Blog was used.

Tagged Items
Menu: News → Spain
Menu Item Type: Tagged Items
Tag: Spain
Content Typ: Article Category
Language Filter: English (en-GB)
Link: index.php?option=com_tags&view=tag&id[0]=37&types[0]=5&tag_list_language_filter=en-GB

Behaviour
Shows Spain in the Tags category heading, but no articles are listed (“No matching items were found”), despite the fact that there are articles published with the tag Spain.

Popular Tags
URL: https://my-site/en/component/tags/tag/spain

Behaviour
Shows list of articles with the Tag Spain, as it should.

Configuration
Joomla: 3.9.25
PHP: 7.4.15

SEO Settings
Search Engine Friendly URLSs: Yes
Use URL Rewriting: Yes

Apache webserver
.htaccess
## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
Last edited by toivo on Thu Apr 22, 2021 11:48 pm, edited 1 time in total.
Reason: mod note: moved from 3.x Bug Reporting

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Issues with Tags at SEF multilingual websites

Post by sokrates_mx5 » Thu Apr 22, 2021 10:35 pm

I've just realized when I re-published only some of the news menus just in Spanish, with further selection by Tags, then when the English News menu (URL: /en/news) was loaded, the language switch to the Spanish page was not "/es/noticias/" as should have been the case. The language switch showed instead "/es/noticias/andalucia", which in order is the last of the published menus of the category Noticias that is further selected with the Tag Andalucia.

It looks like there is a problem in Joomla to point several menus to the same Category, even if they're using different Tags for further selection.


Locked

Return to “Language - Joomla! 3.x”