5👍
✅
If you are posting through AJAX
, you cannot do that.You have to do like
window.location.href = '/redirecturl/'
in AJAX success
callback.
Source:stackexchange.com