The Redirection Behavior

The Redirection Beahvior is very simple in Yii 1, but there are some new header conditions has been added to Yii 2, like ‘pjax’ and ‘ajax’. Now the problem is, I use ajax submit on my form, the form is in a modal dialog, and I want my form refresh after submit, but Yii 2 just send a ‘X-Redirect’ header, if you want to redirect, you must add some javascript to make it happen.

Is there any other way to redirect directly? Of course I can write another redirect function, but I hope Yii can do this job.