[openstreetmap/openstreetmap-website] Url-encode "?" characters in wikipedia tag values (PR #4855)

Anton Khorev notifications at github.com
Fri May 31 01:50:35 UTC 2024


Actually what I said about forward slashes is not entirely true. What's true: 
- They are valid characters in paths.
- Wikipedia even internally doesn't escape them. Example: https://www.openstreetmap.org/node/2634817058 -> look at a [list of sculptures often with `/` in their names](https://en.wikipedia.org/wiki/List_of_sculptures_by_Tony_Smith). In the page source you'll see `<a href="/wiki/Moondog_(3/3)" title="Moondog (3/3)"><i>Moondog</i> (3/3)</a>`.
- But that wouldn't work if the name contains `/../`. Browsers will go up one path segment and remove part of the name. I don't know if such names are allowed on Wikipedia. Maybe they are not, then they don't have to escape `/`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4855#issuecomment-2141100921
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4855/c2141100921 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240530/9043fba8/attachment.htm>


More information about the rails-dev mailing list