From 013e01a52b940559f73f98a15bbaf8eb5f4bcd12 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 3 Oct 2011 10:41:50 +0200 Subject: [PATCH] [FIX] al hacks bzr revid: xmo@openerp.com-20111003084150-oz87j979djfng6xb --- addons/web/common/dispatch.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/web/common/dispatch.py b/addons/web/common/dispatch.py index 245624f2299..cb998caf891 100644 --- a/addons/web/common/dispatch.py +++ b/addons/web/common/dispatch.py @@ -3,6 +3,7 @@ from __future__ import with_statement import functools import logging +import urllib import os import pprint import sys @@ -309,7 +310,7 @@ class Root(object): by the server, will be filtered by this pattern """ def __init__(self, options): - self.root = '/web/webclient/home?debug=1' + self.root = '/web/webclient/home' self.config = options if self.config.backend == 'local': @@ -348,7 +349,9 @@ class Root(object): request.parameter_storage_class = werkzeug.datastructures.ImmutableDict if request.path == '/': - return werkzeug.utils.redirect(self.root, 301)(environ, start_response) + params = urllib.urlencode(dict(request.args, debug='')) + return werkzeug.utils.redirect(self.root + '?' + params, 301)( + environ, start_response) elif request.path == '/mobile': return werkzeug.utils.redirect( '/web_mobile/static/src/web_mobile.html', 301)(environ, start_response)