Web to lead forms Redirect not working

Quick question. I am working on trying to integrate a web to lead form for collecting customer info and I was wondering if anyone had experience with the redirects not working. I set up a redirect to return the user back to the form after completion. It isn’t working however and if I submit the form while looking at the console it is saying it can’t locate the redirect_url function. Anyone have any idea why this might be happening