The forms based login referer redirection doesn't work for me (using
[EMAIL PROTECTED]). The following patch (inexplicably) fixes the
problem--perhaps
someone with more time to debug it can figure it out.
--- /c/TracDev/trunk.export/trac/web/auth.py 2008-10-27
20:31:34.492000000 -0400
+++ auth.py 2008-12-10 16:13:01.347319400 -0500
@@ -103,7 +103,10 @@
self._do_login(req)
elif req.path_info.startswith('/logout'):
self._do_logout(req)
- self._redirect_back(req)
+ if req.args.get('referer'):
+ req.redirect(req.args.get('referer'))
+ else:
+ self._redirect_back(req)
# Internal methods
--
+ -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---