diff --git a/invite.pages.inc b/invite.pages.inc
index 4e0b957..03f16dd 100644
--- a/invite.pages.inc
+++ b/invite.pages.inc
@@ -113,7 +113,11 @@ function invite_accept($invite) {
 
   if (!$user->uid && $status == INVITE_VALID) {
     $_SESSION[INVITE_SESSION] = $invite->reg_code;
-    drupal_goto(variable_get('invite_registration_path', 'user/register'));
+    if (isset($invite->data['regpath'])) {
+      drupal_goto($invite->data['regpath']);
+    } else {
+      drupal_goto(variable_get('invite_registration_path', 'user/register'));
+    }
   }
   else {
     switch ($status) {
