Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
language system
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2009 at 21:26 UTC
Updated:
14 Apr 2010 at 20:53 UTC
When I create a translation node and I try to define an URL alias, the site hungs-up and I cannot recover from there.
Any attempt to browse the site return an empty page.
Attempt to access any page e.g. example.com/user fails.
The URL alias for the default langauage (not english) works fine.
I can reproduce the problem both with version 6.x-1.x-dev of the 30 of August the the current 6.x-1.1 official version.
Comments
Comment #1
hass commentedComment #2
univac commentedHi hass,
thanks for your prompt reply.
I see you are re-directing the issue to Drupal core.
Am not an expert, I cannot judge, but I have the following observation to post:
when i18n is not enabled, the URL aliasing works fine; vice-versa when I enable i18n the URL alias for the default language works correctly. It is only the alis on the translated node that break the system.
Hope this helps.
Cheers,
univac
Comment #3
univac commentedHi again,
with D6.14 is very much the same :-(
what a sadness....
bye
Comment #4
etion commentedsame problem doesnt work on D.14
Comment #5
1websitedesigner commentedHi,
I'm having the same problem with Drupal 6.14, also when I specify that a block is a certain language and should only appear on pages of that language, it ignores it completely.
Basically I've got a site where the primary language is French and the secondary language is English.
Whenever I modify an English page, it resets the url to e.g. node/23.
If I go into site building / URL Aliases (admin/build/path)
Then I notice that the URL Alias appears as I'd expect and in the language column it says 'English'. If I edit this and change 'English' to 'All' for the language, then the alias works again. The problem is whenever I edit the page, it resets the alias to node/23 (for example), until I change language from English to All on the alias page again.
I've tried this with pathauto enabled and disabled and with the option to 'do nothing' when a page is updated on its alias, but the problem always repeats.
I think that on admin/build/path all the URL aliases should be set to ALL, as at the end of the day, nodes are given different numbers depending on whether they are in English or French, so simply removing this column and setting them all to ALL should solve this problem.
Thanks!
Comment #6
univac commentedis anyone able to propose a workaround in Apache with mod_rewrite?
perhaps having a file which collects all URL aliases may work either, but I cannot find the right rule
I have tried something like
RewriteRule /newurl /en/node/50
but doesn't make the job.
With the Redirect directive it works but it replace the URL in the navigation bar, which is not what I like...
any idea in that direction?
bye
Comment #7
univac commentedHi All again,
so if you put
RewriteRule ^myalias$ en/node/50
in the Drupal .htaccess right before the Rewrite Rules for clean URLs, it is going to work.
Of course you need every time to edit the .htaccess when you add some nodes, so it would be nice to have this bug fixed.
Bye for now,
univac
Comment #9
bratsun commented@univac, thnx for the piece of rewriterule code. saved me from headache as after transfer from one folder to another my 6-lang project ran crazy about default english urls. fix of the core is much appreciated anyway.
Comment #11
univac commentedThis appears to be a problem with the opensuse distro 10.3. After applying latest patches of the distro, the problem disappear.
So this is not a bug from Drupal.
Good luck!