Index: webform.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v
retrieving revision 1.113.2.70.2.70
diff -u -p -r1.113.2.70.2.70 webform.module
--- webform.module	6 Oct 2008 06:23:30 -0000	1.113.2.70.2.70
+++ webform.module	5 Mar 2010 04:32:47 -0000
@@ -1245,6 +1245,17 @@ function webform_client_form(&$node, $su
     $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 = '&';
+    }
+  }
+
   if (is_array($node->webform['components']) && !empty($node->webform['components'])) {
     // Prepare a new form array.
     $form['submitted'] = array(
