--- 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):