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/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to