[openstreetmap/openstreetmap-website] Split links in notes when tag has value of type link (or freeform) (Issue #7118)
Minh Nguyễn
notifications at github.com
Thu Jul 2 15:40:27 UTC 2026
1ec5 left a comment (openstreetmap/openstreetmap-website#7118)
Oh, that’s fun. Ideally we’d check if the page exists, but I understand that can be difficult. Do you have an example of a changeset comment or note that we can test this with?
For reference, the wiki’s own [tag template](https://wiki.openstreetmap.org/wiki/Template:Tag#Default_target_links_to_external_sites_for_the_values_of_specific_keys) special-cases Wikipedia, Wikidata, and URL keys to automatically link a Wikipedia article, Wikidata item, or URL. Maybe we need to maintain a list of special cases like that here too. Or just exclude anything looking like a URL from the regex.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/7118#issuecomment-4867548155
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/7118/4867548155 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260702/478bc07b/attachment.htm>
More information about the rails-dev
mailing list