[openstreetmap/openstreetmap-website] links to wikipedia section having diacritics do not work (#3269)
Andy Allan
notifications at github.com
Wed Jul 28 14:28:50 UTC 2021
This is a conflict between the way we generate links to wikipedia sections, and manually specific anchors within the page itself.
We convert the anchors to the "dot" version, and have done for many years. You can see from the html sources that wikipedia automatically inserts anchors with the "dot" version of the section header:

This works fine for section headers. However, the anchor in question is a manually specified anchor:

>From the [English version of the "Template:Anchor"](https://en.wikipedia.org/wiki/Template:Anchor) page: "You can define one or more anchor names, separated by |." We can see that when we look at these anchors in the html source:

So for manually specified anchors, wikipedia doesn't automatically add a "dot" version, unlike the section headers. And our logic - of automatically converting all fragments to the "dot" version, therefore breaks down.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3269#issuecomment-888355729
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210728/b00bf44f/attachment.htm>
More information about the rails-dev
mailing list