I've a clean Drupal 6.0-beta3 install with Content translation and Path modules installed.

If I enable content translation in a content type, create a content in english with the alias "faq" and a translated content in spanish with the same alias "faq", y can access the spanish version in the url "?q=es/faq" and the english one in "?q=faq". But when I'm in spanish in "es/faq" and change to english with the language block link, it switch to the english version, ok, but it ignore the alias I've assigned it and use "?q=node/4". If y switch to spanish it uses "?q=es/faq" again. I'm using Path prefix with language fallback in languages.

1. The node should use the correct alias when switch from one language to another with the Languages block.

2. Ok, english is the default language, but if i create the source content in another language, should not the english content allow access with "?q=/en/faq"? (actually not).

Comments

catch’s picture

Status: Active » Postponed (maintainer needs more info)

I think this bug report is related to: http://drupal.org/node/154517 and might be a duplicate.

would you mind testing the most recent patch from that issue and reporting back with whether it fixes your problems? Instructions for applying patches are at http://drupal.org/patch

RicardoJBarrios’s picture

I've applied the last patch available, the #76, path_alias_004.patch, and it doesn't work. And I found a new error when I try to edit a node:

user warning: Duplicate entry 'faq-es' for key 2 query: UPDATE url_alias SET src = 'node/5', dst = 'faq', language = 'es' WHERE pid = 27 in /home/www/drupal-6.0-beta3/modules/path/path.module on line 91.

catch’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

ElGranAzul: I think this is best dealt with over there, I'm going to mark this as duplicate. Also did you try that patch against a fresh install or empty path alias table? It's unlikely to work with an existing beta table.