I have a website that uses hashes to open/close some tabs and layers on the current page. The reason behind using hashes is, that if a user visits another page via a link and then goes back to the original page all tabs and layers should open up exactly as they were when leaving that page.
The problem is, that while being on the first page and using the browser back button, only the hashes change and the user must click multiple times to actually go back to the last 'real' page.
Can that behaviour be changed? Here's an example workflow:
So I am visiting a page:
start.php > click link > processing.php > click tab, hash changes >
processing.php#1 > click a different section on the page, hash changes to >
processing.php#1-2
Now when I hit the browser back button I want to go back to:
start.php NOT processing.php#1
BUT! When I go from:
processing.php#1-2 > navigate to > otherpage.php
and then hit the back button from there, I need to go back to:
processing.php#1-2
in order to restore the open tabs and layers.
Is that possible!? Any help is appreciated!