Index: cas.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cas/cas.module,v
retrieving revision 1.56.2.12
diff -u -r1.56.2.12 cas.module
--- cas.module	28 Sep 2010 16:28:19 -0000	1.56.2.12
+++ cas.module	28 Sep 2010 16:35:59 -0000
@@ -795,6 +795,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");
