balupton/history.js — Issue #151: HTML5 urls seems not be replaced properly in HTML4 browsers
Author: ppoliani
Created: 2012-01-29 19:47:29+00:00
State: open

Hi everyone,

I have the following url:

http://localhost:7454/Gallery/?gallery=0&image=104

i try to replace this url using:

var state = "?gallery=" + getQueryString2('gallery') + "&image=" + imageID;
History.replaceState(null, null, state);

The result, though, is the following url:

http://localhost:7454/Gallery/?gallery=0&image=104#?gallery=0&image=128

and not:

http://localhost:7454/Gallery/?gallery=0&image=128

However if the orinial url includes hash caharacter the it works.

http://localhost:7454/Gallery/#?gallery=0&image=104

Is there any quirk to overcome this problem?

Thanks in advance!