commit 0c05e9bee5c8891253bae7013dc87b87f96eca63 Author: Hongbo Ni Date: Thu Jun 4 16:44:59 2009 +1000 globalredirect: do not remove slash after language prefix diff --git a/globalredirect.module b/globalredirect.module index 1e6ef7f..5092f8e 100644 --- a/globalredirect.module +++ b/globalredirect.module @@ -100,7 +100,7 @@ function globalredirect_init() { // Do a check if this is a frontpage if (drupal_is_front_page()) { // Redirect if the current request does not refer to the frontpage in the configured fashion (with or without a prefix) - if ($_REQUEST['q'] != $prefix) { + if ($_REQUEST['q'] != $prefix && $_REQUEST['q'] != $prefix.'/' ) { drupal_goto('', $query_string, NULL, 301); } // If we've got to this point then we're on a frontpage with a VALID request path (such as a language-prefix frontpage such as '/de')