? 971552-pathauto-abstract-redirect_1.patch
? 971552-pathauto-abstract-redirect_2.patch
? 971552_alias_exists_support.patch
Index: pathauto.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.inc,v
retrieving revision 1.96
diff -u -p -r1.96 pathauto.inc
--- pathauto.inc	27 Jan 2011 16:11:35 -0000	1.96
+++ pathauto.inc	27 Jan 2011 16:43:49 -0000
@@ -72,7 +72,18 @@ function _pathauto_alias_exists($alias, 
     ':language_none' => LANGUAGE_NONE,
   ))->fetchField();
 
-  return !empty($pid);
+  if (module_exists('redirect')) {
+    // Delete any redirects that match this path for this object.
+    db_delete('redirect')
+    ->condition('source', $alias)
+    ->condition('redirect', $source)
+    ->execute();
+
+    // See if this alias exists as a redirect.
+    $rid = redirect_load_by_source($alias, $language);
+  }
+
+  return !empty($pid) || !empty($rid);
 }
 
 /**
