--- path_redirect.module	2007-12-24 12:48:49.000000000 -0600
+++ path_redirect.module	2007-12-24 19:17:29.000000000 -0600
@@ -303,19 +325,23 @@ function path_redirect_edit_submit($form
   drupal_goto('admin/build/path_redirect');
 }
 
-function path_redirect_save($edit) {
+function path_redirect_save($edit = array('path' => '', 'redirect' => '', 'query' => '', 'fragment' => '', 'type' => '301', 'rid' => NULL)) {
   if (!$edit['rid']) {
     $edit['rid'] = db_next_id('{path_redirect}_rid');
   }
   else {
     path_redirect_delete(NULL, NULL, $edit['rid']);
   }
+
+  // Default redirect is "moved permanently"
+  if (!$edit['type']) {
+    $edit['type'] = 301;
+  }
+
   // remove any other redirects from the same path
   db_query("DELETE FROM {path_redirect} WHERE path = '%s'", $edit['path']);
-  if ($edit['path'] != $edit['redirect']) {
-    $return = db_query("INSERT INTO {path_redirect} (rid, path, redirect, query, fragment, type) VALUES (%d, '%s', '%s', '%s', '%s', '%s')", $edit['rid'], $edit['path'], $edit['redirect'], $edit['query'], $edit['fragment'], $edit['type']);
-  }
-  return $return;
+
+  return db_query("INSERT INTO {path_redirect} (rid, path, redirect, query, fragment, type) VALUES (%d, '%s', '%s', '%s', '%s', %d)", $edit['rid'], $edit['path'], $edit['redirect'], $edit['query'], $edit['fragment'], $edit['type']);
 }
 
 /**
