[openstreetmap/openstreetmap-website] Add URL prettification for plain texts (PR #6518)

Marwin Hochfelsner notifications at github.com
Fri Dec 5 01:58:01 UTC 2025


@hlfan commented on this pull request.



> +      path_template: "user/\\k<username>"
+    - patterns: ["(?<key>[^\"?#<>/\\s]+)=\\*?"]
+      path_template: "wiki/Key:\\k<key>"
+      host: "https://wiki.openstreetmap.org"
+    - patterns: ["(?<key>[^\"?#<>/\\s]+)=(?<value>[^\"?#<>\\s]+)"]
+      path_template: "wiki/Tag:\\k<key>=\\k<value>"
+      host: "https://wiki.openstreetmap.org"
+  display_rules:
+    - pattern: "osm\\.org/user/"
+      replacement: "@"
+    - pattern: "osm\\.org/(?<type>node|way|relation|changeset|note)/"
+      replacement: "\\k<type>/"
+    - pattern: "osm\\.wiki/Key:(?<key>[^\"?#<>/\\s]+)"
+      replacement: "\\k<key>=*"
+    - pattern: "osm\\.wiki/Tag:(?<key>[^\"?#<>/\\s]+)(?:=|%3D)(?<value>[^\"?#<>\\s]+)"
+      replacement: "\\k<key>=\\k<value>"

The bulk of the tagging documentation is in the wiki, and even from non-existing pages, you can reach the taginfo site in one click. The other way around takes longer and is less straightforward.
Also, how often do you discuss a key or tag without a wiki page on the OSM site?

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

Message ID: <openstreetmap/openstreetmap-website/pull/6518/review/3542824885 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251204/f68a7df0/attachment-0001.htm>


More information about the rails-dev mailing list