Language switcher dropdown uses the same default path for all languages unlike the default switcher (Language switcher (User interface text)).
For example, let's say we have two nodes:
node/1, English
node/2, Spanish
The user is currently viewing node/2 (Spanish node). When using the default switcher, the English link points to node/1 and the Spanish link points to node/2. Clicking on English correctly switches the language and loads node/1.
However when using Language switcher dropdown in the same scenario, the English option correctly switches the languages, but reloads node/2.
(Fixed for nodes using the Language switcher dropdown [patch]. Issue remains for View pages, see #6)
Comments
Comment #1
johnhanley commentedAfter some further investigating, I can confirm the same path is used for all language options.
Comment #2
johnhanley commentedComment #3
johnhanley commentedThe attached patch correctly defines the path for each corresponding translated node when switching from one language to another. If the href attribute doesn't exist for a particular language, the current path is used.
Comment #4
wranvaud commentedI confirm this happens but haven't tried the patch, I'm just going to disable the module, not so important to me at this point.
PS: I like your user name :)
Comment #5
psykasso commentedI tried the patch and i can confirm that it solved the problem in my case.
Thanx!
Comment #6
jdvisagie commentedHey guys,
Applied patch and it worked for all my page nodes. However, when viewing a Views Page, the issue remains.
Does not re-load required translated url.
Simple fix out there?
Thanks!
Comment #7
knalstaaf commentedConfirming the issue as mentionned in #6: this is still an issue for Views pages.
When switching the language using the language dropdown on a Views page, the language prefix changes, but the path given through Views doesn't.
E.g.: switching the language from english ( /en/all-titles ) to french, results in "/fr/all-titles" (instead of the supposed "/fr/tous-les-titres").
Comment #8
knalstaaf commentedWhen testing this with the built-in language switcher block of Drupal (which shows the same behaviour), it occurs to me that this must be a Views issue.
But do correct me if I'm wrong, since this is a mere guess.
Comment #8.0
knalstaaf commentedUpdated description of the bug.
Comment #8.1
knalstaaf commentedSkip fixed issues
Comment #8.2
knalstaaf commentedmove to #7
Comment #8.3
knalstaaf commented#6 actually
Comment #8.4
knalstaaf commentedpatch link
Comment #9
knalstaaf commentedMoved this back to its original module, and filed a new issue for Views to avoid confusion.
Comment #10
mohammed j. razemShould be fixed in new 7.x-1.0 release.
Comment #11.0
(not verified) commentedmentionning original module