<blockquote>
<p>you have removed the  uselang  parameter!</p>
</blockquote>

<p>I just copied the urls, seems like OverpassTurbo did remove that.</p>

<blockquote>
<p>irrelevant confusion about umlauts</p>
</blockquote>

<p>Maybe its a separate issue, but there is an issue nonetheless.<br>
As shown, an Umlaut in a section is not "escaped" correctly, so the link does not work.</p>

<p>Node: <a href="http://www.openstreetmap.org/node/1383144922">http://www.openstreetmap.org/node/1383144922</a><br>
Tag: <code>wikipedia=de:Alte Brücke (Heidelberg)#Brückenaffe</code></p>

<p>The link that the website generates does not work:<br>
<a href="http://de.wikipedia.org/wiki/de:Alte%20Br%C3%BCcke%20(Heidelberg)?uselang=de#Br%C3%BCckenaffe">http://de.wikipedia.org/wiki/de:Alte%20Brücke%20(Heidelberg)?uselang=de#Brückenaffe</a></p>

<p>The link that OverpassTurbo generates does work:<br>
<a href="http://de.wikipedia.org/wiki/Alte%20Br%C3%BCcke%20(Heidelberg)%23Br%C3%BCckenaffe">http://de.wikipedia.org/wiki/Alte%20Brücke%20(Heidelberg)%23Brückenaffe</a><br>
Note that it is transformed into this URL: <br>
<a href="http://de.wikipedia.org/wiki/Alte_Br%C3%BCcke_(Heidelberg)#Br.C3.BCckenaffe">http://de.wikipedia.org/wiki/Alte_Brücke_(Heidelberg)#Br.C3.BCckenaffe</a><br>
An umlaut in the section breaks the link, but is OK in the main part?!</p>

<p>Adding the <code>uselang</code> breaks the link again:<br>
<a href="http://de.wikipedia.org/wiki/Alte%20Br%C3%BCcke%20(Heidelberg)?uselang=de%23Br%C3%BCckenaffe">http://de.wikipedia.org/wiki/Alte%20Brücke%20(Heidelberg)?uselang=de%23Brückenaffe</a></p>

<p>even escaping the "ü" in the section does not work:<br>
<a href="http://de.wikipedia.org/wiki/Alte%20Br%C3%BCcke%20(Heidelberg)?uselang=de%23Br.C3.BCckenaffe">http://de.wikipedia.org/wiki/Alte%20Brücke%20(Heidelberg)?uselang=de%23Br.C3.BCckenaffe</a></p>

<p>...except when you use the # instead of %23:<br>
<a href="http://de.wikipedia.org/wiki/Alte%20Br%C3%BCcke%20(Heidelberg)?uselang=de#Br.C3.BCckenaffe">http://de.wikipedia.org/wiki/Alte%20Brücke%20(Heidelberg)?uselang=de#Br.C3.BCckenaffe</a></p>

<p>To sum it up:</p>

<ul>
<li>The section-part needs any umlauts (and ß) escaped, but with a dot instead of %. I haven't checked other non-ascii letters.</li>
<li>The dash needs to be a dash and not escaped if there is a uselang-part</li>
<li>Spaces need to be turned into underscores in the section part and could also be underscores in the main part</li>
</ul>

<blockquote>
<p>The question is, is this really a bug in the web site code? or is the data in the database wrong?</p>
</blockquote>

<p>The wiki currently says to <br>
<em>use the human readable title of the article, for example 'en:St Paul's Cathedral' rather than the version with underscores and html encoded characters that is used in the URL ('St_Paul%27s_Cathedral')</em><br>
It does not mention the special case of links to sections. </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/967#issuecomment-102050966">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLeSzeXUCduD-OII_IdOBwK9GAwksks5oJKesgaJpZM4EZJ-Y.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/967#issuecomment-102050966"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>