[Fixed]-Ajax failing, I'm not using HttpResponseRedirect but it takes me to different url and show some javascript console message

1👍

After I reviewed the complete code and discussed with OP on chat. Turns out there was another event listener (not mentioned in the question) further down in the code which basically submits the form.

Hence, the issue still didn’t resolve once the action attribute was removed from the form. Cause then the form would simply submit a POST request with action="". And hence the page would simply reload.

Leave a comment