Simple, I only click button and use ajax to save the content. And in controller, I want to custom the Location Headers in response.
Example: header["Location"] = path
After then, in success callback of AJAX, to redirect location, I use:
$.ajax(
url: url,
type: "application/json"...