Redirect to relative URL in logout view
authorThierry Florac <thierry.florac@onf.fr>
Wed, 29 Oct 2014 09:37:15 +0100
changeset 89 46a5924b4229
parent 88 3e89fc55ac03
child 90 62fa715ef961
Redirect to relative URL in logout view
src/ztfy/myams/login.py
--- a/src/ztfy/myams/login.py	Tue Oct 14 14:47:00 2014 +0200
+++ b/src/ztfy/myams/login.py	Wed Oct 29 09:37:15 2014 +0100
@@ -189,6 +189,5 @@
                 hooks.setSite(old_site)
             context = getParent(context, ISite, allow_context=False)
         target = queryMultiAdapter((self.context, self.request, Interface), IDefaultView)
-        self.request.response.redirect('%s/%s' % (absoluteURL(self.context, self.request),
-                                                  target.viewname if target is not None else '@@index.html'))
+        self.request.response.redirect(target.viewname if target is not None else '@@index.html')
         return u''