--- shib_auth.module.org	2011-07-29 10:08:00.657163000 +0200
+++ shib_auth.module	2011-07-29 09:25:58.431404000 +0200
@@ -429,7 +429,13 @@
     $redirect_url = $_SESSION['shib_auth_custom_form_url'];
     unset($_SESSION['shib_auth_custom_form_url']);
     drupal_goto($redirect_url);
-  }
+  } else {
+    global $base_url;  
+    $destination=user_login_destination(); 
+    if (is_array($destination)) { $destination=$destination['destination']; } // Drupal 7, must be better way of doing this...
+    drupal_goto($base_url."/".$destination);  // drupal_goto changed between 6 and 7 .. I'm too lazy to make an if...
+  } 
+    
 } //function shib_auth_submit_redirect
 
 /**
