[FIX] local_redirect() should forward code to redirect_with_hash()

bzr revid: fme@openerp.com-20140122104022-hal3xe6eywffly3u
This commit is contained in:
Fabien Meghazi 2014-01-22 11:40:22 +01:00
parent 5013315f57
commit fea8520889
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def local_redirect(path, query=None, keep_hash=False, forward_debug=True, code=3
if query:
url += '?' + werkzeug.url_encode(query)
if keep_hash:
return redirect_with_hash(url)
return redirect_with_hash(url, code)
else:
return werkzeug.utils.redirect(url, code)