[openstreetmap/openstreetmap-website] pretty formatting of OSM URLS in notes, changeset comment, and comments (Issue #5780)
Andrew Harvey
notifications at github.com
Sat Mar 8 20:48:12 UTC 2025
andrewharvey created an issue (openstreetmap/openstreetmap-website#5780)
### Problem
Full URLs pasted within changeset comments and notes makes them harder to read, especially since they only have limited screen real estate.
### Description
As suggested by @1ec5 at https://github.com/openstreetmap/openstreetmap-website/issues/844#issuecomment-2708470716 we could take inspiration from GitHub and pretty format pasted URLs.
I'm thinking within any
1. changeset comment
2. comment on a changeset
3. note
4. note comment
Then format the content as follows
| Pasted URL | Formatted Display |
|---|---|
| https://www.openstreetmap.org/note/4655490 | [note/4655490](https://www.openstreetmap.org/note/4655490) |
| https://www.openstreetmap.org/changeset/163353772 | [changeset/163353772](https://www.openstreetmap.org/changeset/163353772) |
| https://www.openstreetmap.org/way/1249366504 | [way/1249366504](https://www.openstreetmap.org/way/1249366504) |
| https://www.openstreetmap.org/way/1249366504/history | [way/1249366504/history](https://www.openstreetmap.org/way/1249366504/history) |
| https://www.openstreetmap.org/way/1249366504/history/2 | [way/1249366504 (v2)](https://www.openstreetmap.org/way/1249366504/history/2) |
| https://www.openstreetmap.org/node/12639964186 | [node/12639964186](https://www.openstreetmap.org/node/12639964186) |
| https://www.openstreetmap.org/relation/7876483 | [relation/7876483](https://www.openstreetmap.org/relation/7876483) |
| https://www.openstreetmap.org/user/aharvey | [@aharvey](https://www.openstreetmap.org/user/aharvey) |
| https://wiki.openstreetmap.org/wiki/Key:boundary | [`boundary=*`](https://wiki.openstreetmap.org/wiki/Key:boundary) |
| https://wiki.openstreetmap.org/wiki/Tag:boundary=place | [`boundary=place`](https://wiki.openstreetmap.org/wiki/Tag:boundary=place) |
| `boundary=*` | [`boundary=place`](https://wiki.openstreetmap.org/wiki/Key:boundary) |
| `boundary=place` | [`boundary=place`](https://wiki.openstreetmap.org/wiki/Tag:boundary=place) |
### Screenshots
_No response_
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5780
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/5780 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250308/310b2273/attachment.htm>
More information about the rails-dev
mailing list