When Global Redirect is set to check URL Language, it fails to properly handler nodes that have no language because all the logic is designed to work with nodes that DO have translations defined.
It is very common in websites to start using no translations and then later on add a new language to the website. In those cases, and in general, what makes the most sense is that nodes with no translations are treated as the site's default language.
Current Behaviour:
- Website is configured with two languages SPANISH and ENGLISH.
- Overally, the website is in spanish, but some sections are translated to ENGLISH using i18n.
- The default languages is SPANISH, with the prefix set to empty. English has de prefix set to "en".
- When accesing a node that has no translation using the English prefix (en/node/xxx), no redirection is performed.
Expected Behaviour:
Same as above, but user is redirected to the node's URL without a prefix (/node/xxx).
Comment | File | Size | Author |
---|---|---|---|
#2 | 2253033-no-neutral-redirect.patch | 1.77 KB | david_garcia |
Comments
Comment #1
david_garcia CreditAttribution: david_garcia commentedComment #2
david_garcia CreditAttribution: david_garcia commentedComment #3
Chris Matthews CreditAttribution: Chris Matthews commentedThe 5 year old patch in #2 to globalredirect.module applied cleanly to the latest 7.x-1.x-dev, but still needs community review & testing.