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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

david_garcia’s picture

Status: Active » Needs review
FileSize
2.2 KB
david_garcia’s picture

FileSize
1.77 KB
Chris Matthews’s picture

The 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.