<p></p>
<p dir="auto">Popups were chosen initially, inspired by <a href="https://github.com/Bunlong/rails-social-share-button">rails-social-share-button</a>, which is now deprecated. I didn't thought too much about alternatives at the time.</p>
<p dir="auto">To be honest,  I’m not a fan of popups either. Refactoring to open links in new tabs would probably simplify the code and make maintenance easier.</p>
<p dir="auto">For the other alternatives, using Bootstrap modals with iframes likely won’t work due to CSP restrictions on most websites. While the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Share_API#browser_compatibility" rel="nofollow">Web Share API</a> is promising, it’s not yet widely supported.</p>
<p dir="auto">Opening links in new tabs seems like the cleanest and most maintainable solution in my opinion. I would be eager to do a refactor if there is agreement on the approach.</p>

<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/issues/5414#issuecomment-2552426298">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMK6ULW6RBGXLWU2LD2GH42DAVCNFSM6AAAAABT25ZGFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJSGQZDMMRZHA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJFKTJXRAABFRQO3ML2GH42DA5CNFSM6AAAAABT25ZGFSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUYELXTU.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/issues/5414/2552426298</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/issues/5414#issuecomment-2552426298",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5414#issuecomment-2552426298",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>