Fix opening new tab caused by url hash