<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2922303777" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5805" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5805/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5805">#5805</a> added links to heatmaps, but those weren't real links. Those were click listeners that rewrite page locations. The browser won't show their urls and they can't be opened in new tabs.</p>
<p dir="auto">This PR creates real links by wrapping svg rectangles in <code class="notranslate"><a></code> elements.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/3c9d4a62-8462-484e-8b66-daac91f72641">image.png (view on web)</a></p>
<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/5814'>https://github.com/openstreetmap/openstreetmap-website/pull/5814</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5814/commits/cf96d91e55fabc15b90d3e32ab4ba6b709566d72" class="commit-link">cf96d91</a> Create heatmap links using <a> elements</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5814/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5814/files#diff-ff3763133f63089f0a2593943a3de42c08dbbd7afc11b78d1cded6d0ece51c9a">app/assets/javascripts/heatmap.js</a>
(14)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5814.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5814.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5814.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5814.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/5814">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOIEN2I2HCXCNQKGC32UYTM7AVCNFSM6AAAAABZEKFTHGVHI2DSMVQWIX3LMV43ASLTON2WKOZSHEZDGNJSGQYTGMI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIKGSJBVTLXX4KKUOT2UYTM7A5CNFSM6AAAAABZEKFTHGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHK4QLQEM.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/5814</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/5814",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5814",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>