Fixed hashed links after switching to html5mode.