[openstreetmap-website] Clicking wikipedia-link with a section does not always work (#967)

Tom Hughes notifications at github.com
Wed May 13 13:35:32 UTC 2015


To summarise, and ignoring all the irrelevant confusion about umlauts, and the various accidental modifications of unrelated bits of the URL in the initial report, the problem is that we generate this link:

```
http://de.wikipedia.org/wiki/de:Englischer%20Garten%20(M%C3%BCnchen)?uselang=en-GB#Japanisches%20Teehaus
```

when we need to generate:

```
http://de.wikipedia.org/wiki/de:Englischer%20Garten%20(M%C3%BCnchen)?uselang=en-GB#Japanisches_Teehaus
```

with an underscore in the anchor component, because mediawiki requires spaces to be translated to underscore for the anchor name when multiple words are used in a section heading.

The question is, is this really a bug in the web site core? or is the data in the database wrong? It seems that `de:Englischer Garten (München)#Japanisches Teehaus` is not really the right reference and it should be `de:Englischer Garten (München)#Japanisches_Teehaus`.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/967#issuecomment-101665103
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20150513/da367a90/attachment.html>


More information about the rails-dev mailing list