web/views/basecontrollers.py
branchstable
changeset 8485 8de41063d629
parent 8444 7a861620f64f
child 8487 017af22e7678
--- a/web/views/basecontrollers.py	Fri Jul 20 10:57:48 2012 +0200
+++ b/web/views/basecontrollers.py	Fri Jul 20 11:31:34 2012 +0200
@@ -91,7 +91,9 @@
     def publish(self, rset=None):
         """log in the instance"""
         path = self._cw.form.get('postlogin_path', '.')
-        raise Redirect(path)
+        # redirect expect an url, not a path. Also path may contains a query
+        # string, hence should not be given to _cw.build_url()
+        raise Redirect(self._cw.base_url() + path)
 
 
 class LogoutController(Controller):