[FIX] Corrected the redirect_with_hash() method that produced an incorrect url in IE and safari

bzr revid: nicolas.vanhoren@openerp.com-20131029090150-u397wkzdo9an9n0w
This commit is contained in:
niv-openerp
2013-10-29 10:01:50 +01:00
parent abe6df638d
commit 866148efa4
+1 -1
View File
@@ -91,7 +91,7 @@ db_list = http.db_list
db_monodb = http.db_monodb
def redirect_with_hash(url, code=303):
redirect_code = "<html><head><script>window.location = '%s#' + location.hash;</script></head></html>" % url
redirect_code = "<html><head><script>window.location = '%s' + location.hash;</script></head></html>" % url
if request.httprequest.user_agent.browser == 'msie':
try:
version = float(request.httprequest.user_agent.version)