diff --git a/autosave.module b/autosave.module
index 9266803..370a2b3 100644
--- a/autosave.module
+++ b/autosave.module
@@ -178,7 +178,7 @@ function autosave_restore($formid, $timestamp) {
     // tell it to actually submit back to where it would have submitted to
     // originally.
     $form['#action'] = url($record->path);
-    $form['autosave_form_path']['#value'] = $form['#action'];
+    $form['autosave_form_path']['#value'] = $record->path;
 
     // We don't want to change the HTML ID of the form, because we're replacing
     // it in-place.  Drupal wants to give this a suffix for some reason.
