Back & Forward buttons
Back & Forward buttons
Hi Everyone,
I've a question on the Browser "Back" & "Front" button
Description:
I'm making an Ajax call and on success i'm updating the query string using pushstate
- Before Ajax call the url is like this for eg:
http://abc.com?params1=abc
- After the Ajax call, the query string is updated as follows using "pushstate"
http://abc.com?params1=def
- Now when the user hits on "Back" button, its not doing anything. It remains as it is.
I wanted to reload the page with the previous history state whihc is
http://abc.com?params1=abc
Can you please recommend the best approach? Appreciate all your time and help!
Thanks & Regards,
Sathya