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

daganzdaanda notifications at github.com
Wed May 13 12:56:13 UTC 2015

Hi, I have noticed something when looking at the tags of an object: 
Wikipedia links that point to sections (with # ) don't always work.

has the tag
wikipedia=de:Englischer Garten (München)#Japanisches Teehaus

It's a clickable link to
`http://de.wikipedia.org/wiki/de:Englischer%20Garten%20(München)?uselang=de#Japanisches Teehaus`
This brings up the page, but does not jump to the section.

The section is reached by this link instead:
Interestingly, both JOSM and OverpassTurbo translate the tag into the working link. 

It seems that it has to do with the spaces and also non-ascii characters: 
Simple one-word-anchors without "Umlauts" seem to be fine: <http://www.openstreetmap.org/node/1594364342>, but with an Umlaut, it does not work: <http://www.openstreetmap.org/node/1383144922>

Maybe loosely related is #712, that seems to be the last issue about wikipedia-links. 

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20150513/32e812db/attachment.html>

More information about the rails-dev mailing list