summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/authentic2_cut/middlewares.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authentic2_cut/middlewares.py b/src/authentic2_cut/middlewares.py
index 3ee5713..d2444ca 100644
--- a/src/authentic2_cut/middlewares.py
+++ b/src/authentic2_cut/middlewares.py
@@ -35,7 +35,7 @@ class CUTMiddleware(object):
url = next_url or request.GET.get('redirect_uri')
netloc = urlparse.urlparse(url).netloc
if netloc:
- domain = netloc.split(':')[-1]
+ domain = netloc.split(':')[0]
if hasattr(request, 'session'):
if not domain: