[openstreetmap/openstreetmap-website] Url-encode "?" characters in wikipedia tag values (PR #4855)
Elliott Plack
notifications at github.com
Sat Jun 1 04:18:47 UTC 2024
Wikipedia [has a section](https://en.wikipedia.org/wiki/Wikipedia:Naming_conventions_(technical_restrictions)#Question_marks_and_plus_signs) dedicated to the <kbd>?</kbd> and <kbd>+</kbd> in article titles and does recommend escaping them as the PR does. @AntonKhorev would it be worth adding the plus sign to the change?
### Plus Sign
Although the links led with [a + work (see +1 Records for example)](https://www.openstreetmap.org/node/11949307016), Wikipedia recomends encoding the URL like so https://en.wikipedia.org/wiki/%2B1_Records
### Forward slash
Per the namespace article:
> Page names consisting of exactly one or two periods (full stops), or beginning with ./ or ../, or containing /./ or /../, or ending with /. or /.., are not allowed.
Wikipedia _does_ escape them _only if_ the article begins with a <kbd>/</kbd>, e.g., https://en.wikipedia.org/wiki//dev/null
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4855#issuecomment-2143281438
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4855/c2143281438 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240531/a6cd9410/attachment-0001.htm>
More information about the rails-dev
mailing list