?
avatar Giuse69
Giuse69
10 Feb 2016

Steps to reproduce the issue

Setup site as multilingual (2 languages).
Create for each of the two languages:

  1. a category CAT
  2. a home menu item MENU_BLOG as Category Blog of CAT
  3. a menu item MENU_LIST as Category List of CAT
    Associate the menu items between the two languages (lang1 home to lang2 home, MENU_BLOG-lang1 with MENU_BLOG-lang2, MENU_LIST-lang1 to MENU_LIST-lang2).
    Go to frontend, home page where the page is MENU_BLOG of CAT in lang1.

Expected result

The flag link for lang2 should point to HOME of lang2 that is MENU_BLOG-lang2.

Actual result

The flag link for lang2 points to another menu item: the MENU_LIST-lang2, probably fooled by having the same category pointed by two menus. Infact just unpublishing MENU_LIST in both languages makes the association between home menus work correctly.

System information (as much as possible)

windows 7

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar Giuse69 Giuse69 - open - 10 Feb 2016
avatar infograf768
infograf768 - comment - 12 Feb 2016

As far as I remember, this is a known issue when we have 2 menu items displaying the same category, one as List, the other as Blog.

avatar Giuse69
Giuse69 - comment - 12 Feb 2016

Ok, since the exact Association is explicitly stored in the DB, it should be possible to use that instead of trying to recalculate with the router the other language menu item… am I right?

avatar Giuse69
Giuse69 - comment - 13 Feb 2016

@infograf768: actually that is not the problem: also if the two menu items are of the same type (like both catefory blog), changing language when the user is on the home page is wrong: the navigation is not directed to the home page in the other language but to the other menu item pointing to the same category.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9100.

avatar brianteeman
brianteeman - comment - 8 May 2016

This is a known issue which cannot be resolved in this version of Joomla. If code is provided (a pull request) it can always be re-examined. I am closing this here at this time.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9100.

avatar brianteeman brianteeman - change - 8 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-08 09:51:57
Closed_By brianteeman
avatar brianteeman brianteeman - close - 8 May 2016
avatar brianteeman brianteeman - close - 8 May 2016
avatar Giuse69
Giuse69 - comment - 4 Jun 2016

Just a question: I was not raising an issue on Joomla code/routing as a whole but only to the language switcher module that presents wrong hyperlinks on the language flags when the same category is pointed by multiple menu items: since the association between menu items in the different languages is stored in the DB, why the language switcher does not simply read from the #__associations table? Wouldn't it solve this issue?
Thanks

Giuse


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9100.

avatar Giuse69 Giuse69 - edited - 12 Sep 2017

Add a Comment

Login with GitHub to post a comment