From b5118e606edb34016ffad32568b1e02019cfd91e Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 21 Jan 2014 17:01:58 +0100 Subject: [PATCH] [FIX] redirect_with_hash firefox bug bzr revid: fme@openerp.com-20140121160158-qsy28zty51wg7ip4 --- openerp/http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openerp/http.py b/openerp/http.py index 35c7a3bd040..5b49b8f22da 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -67,6 +67,8 @@ def redirect_with_hash(url, code=303): # redirect. And even if IE10 pretends to support it, it still fails # inexplicably in case of multiple redirects (and we do have some). # See extensive test page at http://greenbytes.de/tech/tc/httpredirects/ + if request.httprequest.user_agent.browser in ('firefox',): + return werkzeug.utils.redirect(url, code) return "" % url