How to reproduce:
Switch language to 'English'.
Create a new node, in any other language than English (say German) and specify 'en/myurlpath' as URL path.
After saving the node, the content ist displayed properly.
Now switch language to 'Italian': Pagina non trovata
You may also switch the language to 'German': 'Die Seite wurde nicht gefunden.'
Any language other than English results in a 'page not found' error.
If you modify the URL path to anything other than 'en/myurlpath', everything is fine again.
Comments
Comment #1
Roberto Gerola commentedYou cannot use language prefix in url alias.
Doing so breaks the entire system.
It used by the system to determine the current language.
Comment #2
deining commentedIf using language prefix in url alias is impossible, it would be nice if an error was indicated if someone tries to create such a prefix. No idea how much effort that would mean.
However, I'm still wondering about the fact that the page mentioned above can be accessed with the following URLs without problems:
http://www.myhost.tld/it/en/myurlpath
http://www.myhost.tld/es/en/myurlpath
..
There are only problems accessing the page if the current language (=first language prefix of path) is equal to the language that is defined for the node:
http://www.myhost.tld/de/en/myurlpath
does not work since this path is (AFAICS) rewritten to:
http://www.myhost.tld/en/myurlpath
which eventually leads to an error.
Comment #3
Roberto Gerola commentedComment #4
artycul commentedhi roberto...
first of all: thank you for that great module
i'm trying to set up a site with two languages and 1 hostname for each of them (.de and .net-domains). while translation works well throughout the site, i get problems with the menu-system. in any custom menu-block my links render to xxx.net/en/[node], what results in a 'page not found'. the standart navigation and (i think) any other block render the links correctly (xxx.net/[node] or xxx.de/[node]). i then tried to build my menus with hardcoded custom blocks using echo $base_url. this gives me the desired behavior, but lacks a lot of flexibility.
is there any thing that i just overlooked when building my menu-tree or could this be a bug?
i posted this issue here, 'cause it somehow relates to the topic, hope thats ok.
thanks in advance
...sebi
Comment #5
Roberto Gerola commentedIt is a bug.
The language prefix shouldn't be added when switch by hostname is activated.
I'll work on this issue in the next days also to permit language prefix in custom url aliases.
Roberto
Comment #6
Roberto Gerola commentedBoth bugs should be fixed now on CVS.
Thanks.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.