summaryrefslogtreecommitdiff
path: root/addons/web/controllers
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-06-18 19:41:31 +0200
committerChristophe Simonis <chs@odoo.com>2015-06-18 19:41:31 +0200
commit13468c271f47f694149dac1adcdf06b2e90db752 (patch)
tree774c26f2c8bb68f62d2d8cf6f3c0441f3c8de284 /addons/web/controllers
parent1b7c49bf1e0843c1d11c856ef5474ebfc2c261d1 (diff)
parented3065e3c6613162513638945e760f686fea2b55 (diff)
[MERGE] forward port of branch 8.0 up to ed3065e
Diffstat (limited to 'addons/web/controllers')
-rw-r--r--addons/web/controllers/main.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index d72404e4314..894faec7e51 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -312,12 +312,12 @@ def set_cookie_and_redirect(redirect_url):
def login_redirect():
url = '/web/login?'
- if request.debug:
- url += 'debug&'
+ # built the redirect url, keeping all the query parameters of the url
+ redirect_url = '%s?%s' % (request.httprequest.base_url, werkzeug.urls.url_encode(request.params))
return """<html><head><script>
- window.location = '%sredirect=' + encodeURIComponent(window.location);
+ window.location = '%sredirect=' + encodeURIComponent("%s");
</script></head></html>
- """ % (url,)
+ """ % (url, redirect_url)
def load_actions_from_ir_values(key, key2, models, meta):
Values = request.session.model('ir.values')