Hi to all,
I found a strange nasty bug in pathauto for a specific situation in multilanguage (3) site.
Problem appear in this situation:
I set i18n to show only: current and neutral language i need this setting).
Pathauto 'Automatich URL setting' is : Delete old Alis, create a New One.
I set a "page" content with this "Pattern" for each language:
page/[title] for ENGL
pagina/[title] for ITA
pagina/[title] for ESP
all works fine but when i try to make a multilanguage homepage something stange happens.
For my homepage I used the same "page" content but I set a specific different URL for each single node, INGNORING the automatic pattern setting (unchek on every node edit page the 'Automatic URL alias' settings).
My target is to create 3 page with 3 'non automatic' URL alias:
hello for ENG (instead of page/hello)
ciao for ITA (instead of pagina/ciao)
hola for ESP (instead of pagina/hola)
Using i18n varaible I associated all 3 to homepage (and it works nicely!) in my "Sito info page".
Here the bug: when I set the manual URL for a node (example: for ENG homepage) all is fine, but, at the same time, I lost the 'manual URL mode' for the other two nodes (the ITA and ESP one). Re-opening the wrong pages I found 'Automatic URL alias' CHECKED AGAIN!!
So, my ENG page has URL 'hello' (correct) but my ITA one has 'pagina/ciao' (incorrect) and the same for ESP.
When i try to correct manually the ITA one... then ENG and ESP become wrong.
To avoid the problem I used this:
I changed the Pathauto 'Automatic alias' setting to: preserve old alias (ugly!).
Then I made all single manual URL from 'URL Alis list' interface and NOT form 'node edit page'.
Finally, I lost possibility to easy change my URL in node-edit page and every time I make some update to homepage, i MUST set the URL fromfrom the 'Alias list'.
Con you help me?
Bye!
Comments
Comment #1
fabianx commentedJust install:
http://drupal.org/project/pathauto_persist
That works for me for the same issue.
Comment #2
Dret commentedThanks, just do it!
It works!
;)
Comment #3
dave reidThere are lots of similar issues to this one floating around. We're going to be merging pathauto_persist into the 6.x-2.x and 7.x-1.x branches soon.