Index: subpath_alias.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/subpath_alias/subpath_alias.module,v
retrieving revision 1.9
diff -u -p -r1.9 subpath_alias.module
--- subpath_alias.module	24 Jan 2010 22:32:39 -0000	1.9
+++ subpath_alias.module	7 Jan 2011 01:08:53 -0000
@@ -43,6 +43,15 @@ function subpath_alias_url_inbound_alter
       return;
     }
 
+    // Make sure we don't accidentally rewrite a path for which a valid menu
+    // router item exists, for example a view based on a node path.
+    if (db_result(db_query('SELECT 1 FROM {menu_router} WHERE path = "%s"', $path))) {
+      // Avoid future lookups for that path.
+      $cache['map'][$path_language][$path] = FALSE;
+      $cache['no_source'][$path_language][$path] = TRUE;
+      return;
+    }
+
     // Build a list of sub-paths to look up, excluding known not-existing
     // sub-paths and the full path, which has already been checked by
     // drupal_lookup_path().
