diff --git a/mama_cas/tests/test_utils.py b/mama_cas/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/mama_cas/tests/test_utils.py
+++ b/mama_cas/tests/test_utils.py
@@ -1,4 +1,3 @@
-from django.core.urlresolvers import NoReverseMatch
 from django.test import TestCase
 from django.test.utils import override_settings
 
@@ -87,4 +86,5 @@ class UtilsTests(TestCase):
         A non-URL that does not match a view name should raise the
         appropriate exception.
         """
-        self.assertRaises(NoReverseMatch, redirect, 'example')
+        r = redirect('http')
+        self.assertEqual('/login', r['Location'])
diff --git a/mama_cas/utils.py b/mama_cas/utils.py
index <HASH>..<HASH> 100644
--- a/mama_cas/utils.py
+++ b/mama_cas/utils.py
@@ -76,7 +76,7 @@ def redirect(to, *args, **kwargs):
         to = urlresolvers.reverse(to, args=args, kwargs=kwargs)
     except urlresolvers.NoReverseMatch:
         if '/' not in to and '.' not in to:
-            raise
+            to = urlresolvers.reverse('cas_login')
 
     if params:
         to = add_query_params(to, params)
Change invalid redirect URLs to redirect to /login