? country_code-cache.patch
? country_code_cache.patch
? country_code_caching.patch
? country_code_front_404.patch
Index: country_code.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/country_code/country_code.module,v
retrieving revision 1.93
diff -u -p -r1.93 country_code.module
--- country_code.module	12 Nov 2008 14:41:59 -0000	1.93
+++ country_code.module	4 Dec 2008 17:02:42 -0000
@@ -585,7 +585,7 @@ function country_code_translation_link_a
       if ($link['language']->language != $language->language) {
         // Only add the prefix if the base language is different.
         if (substr($link['language']->language, 0, 2) != substr($language->language, 0, 2)) {
-          $links[$key]['href'] = $country_code . '/' . $links[$key]['href'];
+          $links[$key]['href'] = drupal_is_front_page() ? $country_code : $country_code . '/' . $links[$key]['href'];
         }
         $links[$key]['query'] = array('language' => $key);
       }
