Let's say I create a node in lang #1 and then a translation in lang #2. I then assign them path aliases - alias #1 and alias #2. I use URL prefixes in the form of http://example.com/lang/alias. A user whose language Drupal detects as lang #1:
- goes to
http://example.com/lang #1/alias #1path - everything's OK - goes to
http://example.com/alias #1path (no language prefix) - still fine, Drupal adds the missing prefix - goes to
http://example.com/alias #2path (no language prefix, different alias) - Boom! 404, page not found
Why? I would expect Drupal to either:
- display the node in the other language or
- redirect the user to the appriopriate path (
http://example.com/lang #1/alias #1in this case)
It's really frustrating because in some cases the module's language detection system fails.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 759974-drupal-6-16-path-inc-multilingual-settings-ignored.patch | 2.37 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedComment #2
archetwist commentedThank you for your comprehensive reply.
The problem is the alias was for a page in English which is also the default language of my site! Drupal detected my browser's language is Polish (correct) and presented the interface and the 404 message in Polish.
So, to sum it up, when the default language is lang #1, browser language is lang #2 and user goes to alias #1 (without a language prefix) he gets a "page not found" error. I would like Drupal to redirect him to alias #2. The current behaviour is not consistent - if the same user (lang #2) went to alias #2 the missing prefix would be added for him.
I've tried the i18n Redirect module and also the patch at http://drupal.org/node/201675#comment-2630498 but with no luck.
I haven't tried any of your patches as I'm not sure they address my issue.
Comment #3
Anonymous (not verified) commentedComment #4
Anonymous (not verified) commentedComment #5
archetwist commentedWell, yes, sorry for the confusion. I didn't know the default language setting is significant.
Both browser language and account language are set to Polish. Account language setting doesn't seem to be of much significance in this scenario - the same undesirable behaviour can be observed for anonymous visitors whose browser language is Polish.
That is correct with the addition that it doesn't seem to matter whether the user is or is not logged in.
Exactly.
Comment #6
Anonymous (not verified) commentedComment #7
archetwist commentedSo it seems it's not just me having troubles figuring out the Internationalization module. It looks like it's a bug.
Comment #8
Anonymous (not verified) commentedComment #9
Anonymous (not verified) commentedComment #10
Anonymous (not verified) commentedComment #11
archetwist commentedI don't think it's an UI issue. If what you are saying is that there is no way to redirect a user to the appropriate translation when there is no prefix specified then such a feature should be introduced.
Comment #12
Anonymous (not verified) commentedComment #13
Anonymous (not verified) commentedComment #14
archetwist commentedI've tested your patch with my account language first set to Polish and then English.
So it seems it only works for the account language. But still, it's a real step forward.
Comment #15
Anonymous (not verified) commentedComment #16
Anonymous (not verified) commentedComment #17
kewlguy commentedsubscribing
Comment #18
jose reyero commentedFrom #11 "there is no way to redirect a user to the appropriate translation when there is no prefix specified then such a feature should be introduced."
Yes, that's how it works, think again how it can work consistently before you request that "feature".
Not i18n issue.