? referral_301_redirect.patch
Index: referral.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/referral/referral.module,v
retrieving revision 1.16.2.13
diff -u -p -r1.16.2.13 referral.module
--- referral.module	10 Jun 2009 14:53:08 -0000	1.16.2.13
+++ referral.module	30 Jun 2009 18:47:52 -0000
@@ -144,9 +144,9 @@ function referral_get() {
       // Set the referral cookie
       referral_set_cookie($uid);
     }
-    drupal_goto(variable_get(REFERRAL_GOTO_PATH, 'user/register'));
+    drupal_goto(variable_get(REFERRAL_GOTO_PATH, 'user/register'),NULL,NULL,301);
   }
-  drupal_goto();
+  drupal_goto('',NULL,NULL,301);
 }
 
 function referral_get_user($uid) {
