I have a website with filters. I have appended hash whenever any filter is applied. For example i have city, color filter.
URL/#color=red&city=Delhi
Now when someone clicks browser back on such url, it becomes URL/#color=red. The city query string is removed by browser.
The problem is the page doesn't reload itself.
$(window).on('hashchange', function () {
window.location.reload(true);
});
But this is infinitely loading the page.