title: How to "GO BACK" to the previous page after submit is clicked on a form?
body: <p>I'm working on a project on grails.</p>
  
  <p>I have a filter page (Filters.html) where i can perform a search with various parameters. After the search is performed the results will get displayed. (results.html)
  In the results page it has a link to update a record. (update.html)
  Once clicked on the update link it will take to the update html page, in that page there is a back button also there is a form so that the details can be updated and saved. </p>
  
  <p>With window.history.go(-1); and window.history.back() it goes to the back page without any issue. But the issue arises when the form details are updated. When the form is submitted it comes to the same update page and shows that the records were updated. Afterward when clicked on the BACK button it goes to the same page. But doesnt go back to the results page. If i click on the BACK button twice it will go back to the results page. </p>
  
  <p>I cant save the search parameters in the update page as there are several ways to go to the update.html. 
  Any suggestion ?</p>