Index: path_redirect.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/path_redirect/path_redirect.module,v
retrieving revision 1.3.2.7.2.13
diff -u -F^function -r1.3.2.7.2.13 path_redirect.module
--- path_redirect.module	8 Mar 2008 01:10:17 -0000	1.3.2.7.2.13
+++ path_redirect.module	22 Jan 2009 21:58:31 -0000
@@ -24,11 +24,18 @@ function path_redirect_help($path, $arg)
  * If a match is found, user is redirected using drupal_goto()
  */
 function path_redirect_init() {
+  global $language;
+  
   // see if this page has a redirect path
   $path = substr(request_uri(), strlen($GLOBALS['base_path']));
   if (preg_match('/^\?q=/', $path)) {
     $path = preg_replace(array('/^\?q=/', '/&/'), array('', '?'), $path, 1);
   }
+  // Remove the language prefix from the path.
+  if (!empty($language->prefix)) {
+    $path = preg_replace('/^'. $language->prefix .'\/(.*)$/', '$1', $path);
+  }
+      
   $r = db_fetch_object(db_query("SELECT rid, redirect, query, fragment, type FROM {path_redirect} WHERE path = '%s' OR path = '%s'", $path, utf8_encode($path)));
   if (!$r) {
     $path = preg_replace('/\?.*/', '', $path);
