Currently I'm working on a project which performs some client side validation (using Javascript) on a form when submitted and then based on an Ajax request, either makes a window.location.href redirect or submits the form to be handled by the controller.
My question, what is the best way to handle this situation? Should the form be directly submitted to the controller where the request will be processed or is the current method a better approach?
I feel the redirection based on the Ajax call is completely unnecessary since the controller can do this anyway.