Using window.location=url makes it impossible to use the back button so, in my Javascript script I replaced window.location=url with window.location.replace(url) so that users can click the back button.
My problem is that I have dynamic form fields that the user must selected before clicking a submit button. The redirection url is constructed via Ajax from the form selections.
When the back button is clicked The screen returns to the previous state, but the selections are blank and must be re-entered.
Is there any way to click the back button and retain the previous form values?