Index: cas/cas.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cas/cas.module,v
retrieving revision 1.52
diff -u -p -r1.52 cas.module
--- cas/cas.module	29 May 2009 23:25:26 -0000	1.52
+++ cas/cas.module	30 May 2009 07:07:24 -0000
@@ -570,7 +570,7 @@ function cas_admin_settings() {
     '#default_value' => variable_get('cas_logout_destination', ''),
     '#size' => 30,
     '#maxlength' => 55,
-    '#description' => t("URL. An example URL is '<em>http://www.example.com</em>'."),
+    '#description' => t("URL. An example URL is '<em>http://www.example.com</em>'. You can also use '&lt;front&gt;' for the front page."),
   );
   
   
@@ -705,6 +705,9 @@ function cas_logout() {
   // e.g. caslogout?desination=http://foo.bar.com/foobar
   // do not accept caslogout as a valid destination, since that may cause a redirect loop
   $destination = preg_replace("/(destination=|caslogout)/", "", drupal_get_destination());
+  
+  //Make it an absolute url.  This will also convert <front> to the front page.
+  $destination = url($destination, array('absolute' => TRUE));
 
   // If there was no override and admin has set and enabled a logout destination, look for it
   if (empty($destination) && variable_get('cas_logout_redirect', 0)) {
