Effect a redirect via ajax response

PaulB

Well-known member
I have a basic form that's using AutoValidator to process submissions via ajax. If successful, I'd like to redirect the user to the resource created as a result of the request. This is easy enough to do via JavaScript, but I'm surprised that I can't find this functionality intrinsically. It looks as though normal redirect responses are deliberately ignored for ajax requests; however, the data is still passed to JavaScript event handlers, and I can run window.location.assign(event.ajaxData._redirectTarget) manually.

Is there some way to do this without additional JavaScript to handle the response?
 
Back
Top Bottom