I want to refresh the page with an additional hash in the url. The problem is that the hash is added but the page is not reloaded which I want in this case. I have tried the following:
window.location.href = "http://www.mydomain.com/page1#test";
The hash is added in the url but the page is not reloaded. How do I achieve this functionality?