Index: cas.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cas/cas.module,v
retrieving revision 1.74.2.2
diff -u -r1.74.2.2 cas.module
--- cas.module	28 Sep 2010 16:07:53 -0000	1.74.2.2
+++ cas.module	28 Sep 2010 16:13:33 -0000
@@ -924,6 +924,12 @@
     $destination = $_SESSION['cas_goto'];
   }
   unset($_SESSION['cas_goto']);
+  
+  // Change the user/login and user/register urls to the users current page. 
+  if ($destination == 'user/login' || $destination = 'user/register') { 
+    $destination = 'user/'. $user->uid; 
+  }
+  
   drupal_goto($destination);
   // this should never happen.
   $output .= t("Cas page... you should never get here");
