I have two languages, swedish (default) and english.
Navigating the homepage in the default language works fine but as soon as i select english from the switch language block every link in my menu (primary links) leads to it's system node address instead of it's URL alias address.
Example:
- I type my homepage address in the address bar: www.mysite.com
- I select the swedish "about us" page: www.mysite.com/om-oss
- I select english and instead of brining me to www.mysite.com/en/about-us I'm presented with "www.mysite.com/en/node/23" which is the system address for about us.
Why is this happening?
I'm using these modules: i18n, pathauto
My settings for "admin/settings/language/configure":
= Path prefix with language fallback.
My settings for "admin/settings/language/i18n":
= All content. No language conditions apply."
I've removed the path prefix for the default language to avoid duplicated content issues (SEO). Typing "www.mysite.com/om-oss" or "www.mysite.com/sv/om-oss" shouldn't return the same result.
Note: My URL aliases work if I type them manually in the address bar. My problem is that the URL alias are not used when navigating the homepage normally.
Comments
Comment #1
eriksson-1 commentedSolution: http://drupal.org/node/347265#comment-1249810
Comment #3
freatida commentedI'm reopening this because I have the same problem but it's not fixed by the link given in #1.
To recap:
- when accessing pages via the main menu, the correct url aliases are used
- when viewing the same page in another language via the language switcher, the system urls are used (node/45 etc)
Comment #4
jose reyero commented@freatida,
Nope, it is not fixed there, but that explains what happens and it is Drupal core, not i18n...