due to the bug reported from module globalredirect, http://drupal.org/node/216271, i think we should removed the language prefix in $_REQUEST['q'] during languge init. in file language.inc,
change:
// Search prefix within enabled languages.
foreach ($languages as $language) {
if (!empty($language->prefix) && $language->prefix == $prefix) {
// Rebuild $GET['q'] with the language removed.
$_GET['q'] = implode('/', $args);
return $language;
}
}
to:
// Search prefix within enabled languages.
foreach ($languages as $language) {
if (!empty($language->prefix) && $language->prefix == $prefix) {
// Rebuild $GET['q'] with the language removed.
$_REQUEST['q'] = $_GET['q'] = implode('/', $args);
return $language;
}
}
because we don't need the language prefix after language_initialize(), it's set to global $language.
| Comment | File | Size | Author |
|---|---|---|---|
| redirect.patch | 625 bytes | wilson98 |
Comments
Comment #1
gábor hojtsyInteresting. Changing title to make it clear. Not really sure if this would be an API change or not.
Comment #2
jhedstromI think this has been taken care of somewhere along the way.