<p>What not use a solution like History.js where you use the HTML5 history rewrite feature if available and falls back to hash if not available? It contains some quirks but several sites including <a href="http://graphhopper.com">my own</a> are using it successfully.</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-21535761'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpiUrGUapkX5IpvHQvKW5tj4sebzHIR9_xuyLZJp4vOv2.gif' height='1' width='1'></p>