'Browser back button javascript

When I click on the browser back button in my JavaScript web app, first click functions all right but second time when I press the back button it is not loading the required details. No network call is made and no details rendered. From home page, I will be clicking on product details page and from there of I click on user reviews and trying to get back to products and then home page, this issue occurs. For the products reviews details I use an anchor tag, href is set with desired URL. In the click event I use e.prevent default() method. Pls let me know how to sort out this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source