Redirect to relative URL in logout form 0.1.9
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 Dec 2014 10:03:35 +0100
changeset 96 1be0b3bf8677
parent 95 beba0d4262c2 (current diff)
parent 91 ea0f5cbc525d (diff)
child 97 0f1415f3d46a
Redirect to relative URL in logout form
.hgtags
docs/HISTORY.txt
src/ztfy.myams.egg-info/PKG-INFO
--- a/.hgtags	Tue Dec 16 09:50:50 2014 +0100
+++ b/.hgtags	Tue Dec 16 10:03:35 2014 +0100
@@ -6,5 +6,5 @@
 0d9c96bbba3faffbcd069607a5323915f4e1397b 0.1.5
 eaa27399ce71fd86f75d86f60b3871e491428c0b 0.1.6
 6461321696622f47a504c2ec2aa5f097ac3646cd 0.1.7
-62fa715ef961e62a6e51cc2d220e33e6cd365295 0.1.9
+d6076389062284353e943d17d8044df9b7e4b0f2 0.1.8
 01102909c5e409f90107769dda4344e9449d4380 0.1.9
--- a/docs/HISTORY.txt	Tue Dec 16 09:50:50 2014 +0100
+++ b/docs/HISTORY.txt	Tue Dec 16 10:03:35 2014 +0100
@@ -5,6 +5,7 @@
 -----
  - added optional form's title attribute
  - updated Google Analytics code
+ - redirect to relative URL in logout view
 
 0.1.8
 -----
--- a/src/ztfy.myams.egg-info/PKG-INFO	Tue Dec 16 09:50:50 2014 +0100
+++ b/src/ztfy.myams.egg-info/PKG-INFO	Tue Dec 16 10:03:35 2014 +0100
@@ -40,6 +40,7 @@
         -----
          - added optional form's title attribute
          - updated Google Analytics code
+         - redirect to relative URL in logout view
         
         0.1.8
         -----
--- a/src/ztfy/myams/login.py	Tue Dec 16 09:50:50 2014 +0100
+++ b/src/ztfy/myams/login.py	Tue Dec 16 10:03:35 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''