<ul dir="auto">
<li>Replaces <code class="notranslate">new URLSearchParams(location.search)</code> with <code class="notranslate">OSM.params()</code> when it yields more concise code.
<ul dir="auto">
<li>All remaining URLSearchParams that aren't initialized empty or with an object use .toString().</li>
</ul>
</li>
<li>Adds <code class="notranslate">location.hash</code> as a default parameter for <code class="notranslate">OSM.parseHash</code>.
<ul dir="auto">
<li>Moves the fallback for <code class="notranslate">OSM.params</code> to a default parameter too, which removes the check needed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1271225692" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3571" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/3571/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/3571">#3571</a>.</li>
</ul>
</li>
</ul>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5825'>https://github.com/openstreetmap/openstreetmap-website/pull/5825</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/commits/9a3f9ea37bbebf5e1e9c0db0e55d4d3c60bd416b" class="commit-link">9a3f9ea</a>  Shorten OSM.params and URLSearchParams</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files">11 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-5c2b51e0ba5f2385195ba895842df7b083fc07b716e39a720f01d5a988edeefa">app/assets/javascripts/edit/id.js.erb</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-ff3763133f63089f0a2593943a3de42c08dbbd7afc11b78d1cded6d0ece51c9a">app/assets/javascripts/heatmap.js</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-cdc070ced1c4000efd1e28357fd26b2fd617d7fccfeae0324222231db75dd6ee">app/assets/javascripts/index.js</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-e8b0bd562b0aaead17e44d572d51fcc72fa846c7b54ae5df2dc6434fb80834dc">app/assets/javascripts/index/changeset.js</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-fdb9558c2ba79ddf9fbcb92594a8a8fa54abb1b3e25ce264de37951b428a958b">app/assets/javascripts/index/directions.js</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-25cab16df4a58e0c8e53d0a0e70d9bbf28ef3beb9e6bf1208234fdeed7515392">app/assets/javascripts/index/history.js</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-08fd2f80528286cf96375b12d81cac98954dee8e6a6899f5f261a127861fdd49">app/assets/javascripts/index/new_note.js</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-8f18485b763264500054435af432745e2a51b4402140728dc4df89024768b71b">app/assets/javascripts/index/note.js</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-8275a6df0995b2af17f0b52a0dfe5a00f8b09d9d51b89516e2612a3faa9d8c0f">app/assets/javascripts/index/query.js</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-8859067d4860f7b3d870155d8af8c81e89fd7c66cd2ebb58bd42cf31005c3c27">app/assets/javascripts/index/search.js</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825/files#diff-a9b88a8a3644f944b9bd54361da588c69fa6a210cf7327194c17895a8ad2b0d6">app/assets/javascripts/osm.js.erb</a>
    (17)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5825.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5825.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5825.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5825.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5825">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNB6WHXQNU2BBSSPMD2VHAOHAVCNFSM6AAAAABZLWDB5SVHI2DSMVQWIX3LMV43ASLTON2WKOZSHEZTEOJSGE4DENQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPINUUH2ASSATRZRAD2VHAOHA5CNFSM6AAAAABZLWDB5SWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHK5UGV4I.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5825</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5825",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5825",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>