web/views/basecontrollers.py
changeset 8535 268b6349baf3
parent 8487 017af22e7678
child 8556 bbe0d6985e59
child 8605 797fc2e2fb78
--- a/web/views/basecontrollers.py	Fri Aug 03 13:29:37 2012 +0200
+++ b/web/views/basecontrollers.py	Fri Sep 07 14:01:59 2012 +0200
@@ -90,8 +90,10 @@
 
     def publish(self, rset=None):
         """log in the instance"""
-        path = self._cw.form.get('postlogin_path', '.')
-        raise Redirect(path)
+        path = self._cw.form.get('postlogin_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):