[FIX] local_redirect() should forward code to redirect_with_hash()
bzr revid: fme@openerp.com-20140122104022-hal3xe6eywffly3u
This commit is contained in:
parent
5013315f57
commit
fea8520889
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue