[openstreetmap/openstreetmap-website] pretty formatting of OSM URLS in notes, changeset comment, and comments (Issue #5780)
Anton Khorev
notifications at github.com
Fri Mar 28 16:21:24 UTC 2025
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5780)
> So "it used to work" in the original text but it "doesn't work" when pasted, as without the protocol it isn't getting linkified again.
The answer is "no, text that didn't start with http/https wasn't linkified, although www. was (but with http protocol, not https)".
The behavior here was kind of beta tested on better-osm-org users who don't seem to complain about it.
The easy fix is to not strip the http/https, but that makes link texts longer.
The more advanced fix is to do detect more links ourselves, but see https://github.com/openstreetmap/openstreetmap-website/issues/5780#issuecomment-2746253474, this will definitely lead to thing misdetected and more complaints.
There's also a possible fix purely for copypasting.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5780#issuecomment-2761834209
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/5780/2761834209 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250328/8f903afb/attachment.htm>
More information about the rails-dev
mailing list