<p>I'm in the same camp as <a href="https://github.com/tomhughes" class="user-mention">@tomhughes</a> -- I hardly ever use the global history UI, and will gladly accept extra entries there in return for the benefits of a persistent hash.</p>
<p>That said, it is unfortunate that some browsers have the behavior they do. There seems to be little consistency between browsers:</p>
<p>Firefox 22: Both location.replace and history.replaceState create new entries in the global history UI.<br>
Chrome 28: Both location.replace and history.replaceState create new entries in the global history UI.<br>
Chrome 30: location.replace updates the existing entry, history.replaceState creates new entries<br>
Opera 12: Neither location.replace nor history.replaceState create new entries (but neither update the existing entry)<br>
Opera 15: Sometimes location.replace creates a new entry, sometimes it updates an existing one (no idea what the criteria are). history.replaceState always creates a new entry.<br>
Safari 6: Both location.replace and history.replaceState create new entries in the global history UI.</p>
<p>The behavior of Firefox is under discussion <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=753264">here</a>.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/378#issuecomment-21802146'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpiUrGUapkX5IpvHQvKW5tj4sebzHIR9_xuyLZJp4vOv2.gif' height='1' width='1'></p>