title: Using history.pushstate in IE9
body: <p>Since window.history.pushState is not aviliable for HTML 4 browsers like IE9 , I have looked for history.js, a jQuery library that simulates the pushState behavior.</p>
  
  <p>The problem is , when using pushState, the end of the url is duplicated</p>
  
  <p>For example,</p>
  
  <pre><code>History.pushState(null,null,window.location.pathname + '?page=1');
  </code></pre>
  
  <p>returns,</p>
  
  <p><a href="http://www.development.com/test.html#test.html?page=1" rel="nofollow">http://www.development.com/test.html#test.html?page=1</a></p>
  
  <p>How do I avoid this problem? Thank you kindly.</p>
  
  <p><strong>Update (On 2012 / 1 /22)  , Question for bounty:</strong></p>
  
  <pre><code>                if (pageNo == 1){
                      //window.history.pushState({"html":currURL,"pageTitle":''},"", window.location.pathname + '?page=1'); For chrome and FX only
                      //History.replaceState(null,null,'')
                      //History.pushState(null,null,'?issue=' + currPageIssueNo + '&amp;page=1');
                  }   
                  else if (pageNo != 1 || pageNo == 1 &amp;&amp; linkPageNo &gt; 1  ) {
                      History.pushState(null,null,'?issue=' + currPageIssueNo + '&amp;page=' + pageNo);
                      //window.history.pushState({"html":currURL,"pageTitle":''},"", newURL);   For chrome and FX only
                  }
  </code></pre>
  
  <p>I am still encounter the problem , if it is the first page</p>
  
  <pre><code>http://localhost/development/flipV5.html?issue=20121220&amp;page=1
  </code></pre>
  
  <p>When i go to second page in IE9 , it has url : </p>
  
  <pre><code>http://localhost/development/flipV5.html?issue=20121220&amp;page=1#flipV5.html?issue=20121220&amp;page=2
  </code></pre>
  
  <p>Which i would like to achieve is </p>
  
  <pre><code>http://localhost/development/flipV5.html?issue=20121220&amp;page=2
  </code></pre>
  
  <p>If it is impossible for HTML 4 browser, please  at least achieve</p>
  
  <pre><code>http://localhost/development/flipV5.html/#?issue=20121220&amp;page=2
  </code></pre>
  
  <p>thanks for kindly help</p>