<p><a href="https://github.com/smsm1" class="user-mention">@smsm1</a> thanks for the heads up - using <code>path.split('?', 2)</code> should be enough, right? Though there's the issue of the fragment as well</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/commit/61bb31ebdddc9e7c317a1c6784a68874d5a0ef80#commitcomment-4742161'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpkzeFIIhcBt9Ci-xu71ybDxfmRNAWt5QSkXaYq-BxX7f.gif' height='1' width='1'></p>