A two languages site EN and IT an article created in the two languages and associated each other, a menu item pointing to article category created in the two languages and associated each other.
Going to the article in English, language switcher module published, SEF enabled with URL rewrite.
The IT flag link points to the Italian article.
The EN flag (current language) points to current URL.
Current language flag points to the menu URL, without the last part of the article.
Joomla 3.8.12, no additional component nor plugin.
Labels |
Added:
?
|
See for example here: article in English, the Italian flag points to the Italian associated article, the English flag points to menu URL and not to current article. Same for Italian article: English flag link is ok, Italian flag not ok.
Probably because there is no associated English article to current article but... since it is the article itself?
what are the settings of this site? They look pretty weird.
I see homes do not display anything and there are no menu modules with links.
domain.info/OTHER/j4/
domain.info/OTHER/j4/it/
This does not look like a joomla issue. You should use the forums to try to solve your problem.
Labels |
Added:
J3 Issue
|
I confirm.
Is it a real issue? Not really as it is useless to click on the flag for the same language.
This is why we may set the Active Language parameter to No in the module when not using dropdown.
Nevertheless we should try to solve that.
Make the flag for the active language inactive?
We could do that, but I am looking at another possibility right now.
Semantically it probably should be disabled/inactive
Displaying the flag or language name without a link would look pretty weird.
Users may think something is wrong when they click on it.
I prepared a PR which will correct the issue and display the current url.
Just as a "home" link shouldnt be enabled on the home page
Not related at all.
The home link IS enabled. The only difference is that it does not need associations to be associated.
The link in that case is simply
$language->link = JRoute::_('index.php?lang=' . $language->sef . '&Itemid=' . $itemid);
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-10-09 10:22:26 |
Closed_By | ⇒ | infograf768 |
Can't reproduce here. Code implies that an associated item (here an article) has priority over a menu item.