@Weru I have an actual website. Here is my website: DoradoList.
@davidsneighbour none of your suggestions worked.
After a lot of Googling I found that many people have/had this issue and one suggestion was to add this code to the html page:
$(document).ready(function () {
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
if (window.location.hash && isChrome) {
setTimeout(function () {
var hash = window.location.hash;
window.location.hash = "";
window.location.hash = hash;
}, 200);
}
});
Which I am not sure what it does. But it seems it resolve the issue. However, it creates a new issue. Here is a link that you can see how it works and I explain the issue.
On this page, if you click on Analog Electronics
link at the bottom you go to a new page and anchor works fine. However, when I click on the back arrow on top of the Chome, it does not go to the previous page. I need to press back arrow 3 times to go to previous page. When I go to the anchored page the page url is:
http://www.doradolist.com/analog.html#analog-electronics-books-suggested-by-hooman-darabi
when I click back arrow on Chrome page url becomes:
http://www.doradolist.com/analog.html#
when I click back arrow one more time the page url becomes:
http://www.doradolist.com/analog.html#analog-electronics-books-suggested-by-hooman-darabi
and when I press it for the 3rd time then it goes to the previous page:
http://www.doradolist.com/hooman-darabi.html
Why do I see this new annoying issue and how can I resolve this one?
Thanks for all your helps.