<p></p>
<h3 dir="auto">URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">How to reproduce the issue?</h3>
<ol dir="auto">
<li>Pick random diary entry with spaces in title, e.g. <a href="https://www.openstreetmap.org/user/watmildon/diary/406063" rel="nofollow">https://www.openstreetmap.org/user/watmildon/diary/406063</a></li>
<li>Click on "Share via Email" button</li>
<li>Note that the title in your email client reads as "<code class="notranslate">OSM+US+Board+Candidate+Statement+2025</code>"</li>
</ol>
<p dir="auto">Issue: <code class="notranslate">title = URI.encode_www_form_component(title) </code> is wrong encoding for email titles, it should probably be <code class="notranslate">URI.encode_uri_component</code>, which replaces space characters by %20</p>
<p dir="auto">See <a href="https://stackoverflow.com/questions/68835994/how-to-have-a-subject-line-with-spaces-in-an-email-link" rel="nofollow">https://stackoverflow.com/questions/68835994/how-to-have-a-subject-line-with-spaces-in-an-email-link</a></p>
<h3 dir="auto">Screenshot(s) or anything else?</h3>
<p dir="auto"><em>No response</em></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/5587">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLON4HA5BYN4BS2VCRT2NUBP3AVCNFSM6AAAAABWJP2TTKVHI2DSMVQWIX3LMV43ASLTON2WKOZSHAZDKMZTGQ3DGOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJ6KDGHJHKZJBCN5GT2NUBP3A5CNFSM6AAAAABWJP2TTKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKQZZPN4.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/5587</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/5587",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5587",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>