I\'ve a probleme in my code. The aim is to complete a simple form, then you click on a submit button. It do an Ajax resquest to go in the method. On success in the ajax request,
This is the correct answer. It will refresh the previous page.
window.location=document.referrer;