<p></p>
<blockquote>
<p dir="auto">(for example, a wikipedia link with a forward slash in the title, if that's possible)</p>
</blockquote>
<p dir="auto">Forward slashes don't need to be escaped. <code class="notranslate">(</code>, <code class="notranslate">)</code>, <code class="notranslate">:</code> also don't need to be escaped.</p>
<blockquote>
<p dir="auto">I think we should look for something that encodes url components</p>
</blockquote>
<p dir="auto">Are you also against replacing <code class="notranslate"> </code> with <code class="notranslate">_</code>? That's something a standard url encoder is not going to do.</p>
<p dir="auto">This is what you're going to get with <code class="notranslate">ERB:Utils</code>:</p>
<pre class="notranslate"><code class="notranslate">https://de.wikipedia.org/wiki/de:Englischer Garten (München)?uselang=en#Japanisches_Teehaus
https://de.wikipedia.org/wiki/de%3AEnglischer%20Garten%20%28M%C3%BCnchen%29?uselang=en#Japanisches_Teehaus
</code></pre>
<p dir="auto"><a href="https://datatracker.ietf.org/doc/html/rfc3986#section-3.3" rel="nofollow">https://datatracker.ietf.org/doc/html/rfc3986#section-3.3</a></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/pull/4855#issuecomment-2138543460">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLII4XYVUW2JO7DGLZTZE2C6PAVCNFSM6AAAAABIOJCTN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZYGU2DGNBWGA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLL6S3Y5YVFRNWET3LZE2C6PA5CNFSM6AAAAABIOJCTN2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT7O6KWI.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/4855/c2138543460</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/4855#issuecomment-2138543460",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4855#issuecomment-2138543460",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>