Our single page application uses a custom router. We replace invalid urls with valid ones using history.replaceState(...) .
The urls look like ...
http://domain.com/#view=employee/details¶m1=1¶m2=2
When it is time to replace an invalid url, we call
history.replaceState(null, null, "#view=employee/details¶m1=11¶m2=22");
But the above code keeps adding to the browser history. What am I doing wrong?