In my script I'm tracking what tab I am on in a web page using
window.location.href = #!hashName1
If I then click on another tab, it will go to #!hashName2
My issue is, if I click the back button, it just goes back to the state #!hashName1. I have to then click back once again to go back another page.
Is there any way to just have it go back a page and not back to the previous hash state?
Thanks
The following worked perfectly:
I changed:
to
u can handle back button event like this
this will fire whenever you press back button and add previous url