[web/views] don't force http redirect on logout
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 22 Jun 2015 11:28:16 +0200
changeset 10406 9c7461bf99a7
parent 10405 7b27a7443180
child 10407 18d1ef2d2a3e
[web/views] don't force http redirect on logout We no longer forbid anonymous browsing on https, so we can keep the same scheme when logged out. Closes #5507479.
web/views/basecontrollers.py
--- a/web/views/basecontrollers.py	Tue Jun 16 00:26:55 2015 +0200
+++ b/web/views/basecontrollers.py	Mon Jun 22 11:28:16 2015 +0200
@@ -110,10 +110,7 @@
         #   anonymous connection is allowed and the page will be displayed or
         #   we'll be redirected to the login form
         msg = self._cw._('you have been logged out')
-        # force base_url so on dual http/https configuration, we generate a URL
-        # on the http version of the site
-        return self._cw.build_url('view', vid='loggedout',
-                                  base_url=self._cw.vreg.config['base-url'])
+        return self._cw.build_url('view', vid='loggedout')
 
 
 class ViewController(Controller):