Hello all,

I have 5.x-2.4 with pathauto 5.x-2.3.

I have language switcher block enabled, and I'm using the translation modules. So, I have different nodes for different translations of a (main) node.

All the translated nodes may have different titles and hence, different URL aliases.

The language switcher block doesn't seem to detect that, and shows the same alias for the different languages. The result is, when you click on a flag icon/link, you get a 404 error "Page not found".

Is this the intended behavior? Should I configure something in a different way?

Thanks in advance.

Comments

scatteredbrainV’s picture

I have the same problem with the same config.
My url remains the same but for the language prefix, and the link to the language for the translation does not detect that.
For example, if I am reading en/page01, and I want to read it in German, the link to German displays "de/node/#".
How can I fix that?

Anonymous’s picture

I think that i have the same problem. All nodes have their aliases, but when i change language, only language prefix in url is changed. The url alias and content of the node is the same. In other words, node stays, only system language is changed. This is currently a BIG problem for me, because i'm finishing my work on one project and this is a major problem for me now. So if someone have a solution, i would be greatful.

Anonymous’s picture

Category: support » bug
Priority: Normal » Critical

I'm sorry for double posting, but i forgot to set priority to critical.

jmlavarenne’s picture

I seem to have the exact same issue - I've been able to use i18n successfully in the past without this issue.

While troubleshooting I turned off path aliasing module and I'm finding I still have the same problem - language switcher shows node/$nid with language prefix, i.e. de/node/1234 and en/node/1234

This means I see the same node, with only the context and menus translated.

The normal behavior from my experience is that the language switching block provides the node id of the translation. When path is enabled, the language switcher provides the alias of the translation.

I've been using i18n on many sites and this is the first time I encounter this issue, so I am assuming at this point it is contextual, i.e. related to something specific to this Drupal install.

I will post more information when I find it, and in the meantime would be grateful if Drupalers having faced the same issue would post their findings here.

jmlavarenne’s picture

Title: Language switcher links not considering the right aliases for a node » Switcher link ignores translation nid and alias

Shortened title for slightly clearer issue description

jmlavarenne’s picture

Finally I saw that the name of the block is Language switcher (Interface only) - so I guess this is normal behavior.

nathan573’s picture

I believe it is the "Translations for Content" Block that is wanted here, not the "Language switcher (Interface only)" Block.

R.Hendel’s picture

Status: Active » Closed (won't fix)