• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Effect a redirect via ajax response

Zenexer

Active member
#1
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?