I was recently trying to make use of the ajaxForm plugin from jquery to handle my form submission success/error (which is retrieved from a netlify function in the back end). Everything worked locally using the netlify CLI and I was able to handle the return value from form submission to display a nice alert box informing the user.
However whenever I deployed, the ajax|Form would simply cease to work, instead after form submission I would be taken to a new page displaying the JSON result from the netlify function (e.g. success: True).
It took me far too long to figure out what was going on so this post is just to hopefully save someone else some time. The script tag that imported the jquery form plugin was pointing to this URL:
However, what should be used is this URL: