history.js
history.js copied to clipboard
Issues in IE9
I’m trying to use History.js in IE9 and I don’t really get how History.js works or what it’s trying to do.
I start with this URL:
http://localhost:8080/gxa/search/differential?geneQuery=zinc+finger
In the webpage that loads, I click on a checkbox that does only this:
History.pushState(null, null, newUrl);
Where newUrl = "?geneQuery=zinc finger&select={"kingdom":{"animals":true}}".
The resulting URL is:
http://localhost:8080/gxa/search/differential?geneQuery=zinc+finger#search/differential?geneQuery=zinc%20finger&select=%7B%22kingdom%22:%7B%22animals%22:true%7D%7D
- Why is the hash added from
search? This comes from theHistory.getShortUrlfunction. - Why is a hash added in the first place? Internet Explorer 9 doesn’t need it.
+1
I have the same issue when calling pushState in IE9. The new fragment is just appended after the automatically added #.
Yep, same problem here. IE9.