history.js icon indicating copy to clipboard operation
history.js copied to clipboard

Issues in IE9

Open alfonsomunozpomer opened this issue 10 years ago • 2 comments

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

  1. Why is the hash added from search? This comes from the History.getShortUrl function.
  2. Why is a hash added in the first place? Internet Explorer 9 doesn’t need it.

alfonsomunozpomer avatar Jul 31 '15 13:07 alfonsomunozpomer

+1 I have the same issue when calling pushState in IE9. The new fragment is just appended after the automatically added #.

bendulum avatar Oct 05 '15 14:10 bendulum

Yep, same problem here. IE9.

jasonfmo avatar Nov 04 '15 02:11 jasonfmo