Index: webform.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v
retrieving revision 1.124.2.114
diff -u -p -r1.124.2.114 webform.module
--- webform.module	1 Mar 2010 02:01:20 -0000	1.124.2.114
+++ webform.module	5 Mar 2010 04:28:07 -0000
@@ -1490,6 +1490,17 @@ function webform_client_form(&$form_stat
     $form['#action'] = url('node/'. $node->nid);
   }
 
+  //If any get parameters are set, then save them as well in the action.
+  //This only works for clean urls
+  //For non-clean urls parameters are safely ignored
+  $delimit = '?';
+  foreach ($_GET as $k => $v) {
+    if (!($k == 'q')) {
+      $form['#action'] .= $delimit . $k . '=' . $v;
+      $delimit = '&';
+    }
+  }
+
   $form['#submit'][] = 'webform_client_form_submit';
   $form['#validate'][] = 'webform_client_form_validate';
 
