When i validate the form on alfresco with the submit button, the process return with the previous url. I would submit my form and then go to one url i have on javascript.