[openstreetmap/openstreetmap-website] Add URL prettification for plain texts (PR #6518)
Minh Nguyễn
notifications at github.com
Fri Dec 5 08:17:20 UTC 2025
@1ec5 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>"
That reminds me, we’ve only customized the wiki’s 404 page to include the data item–powered infobox and taginfo box when the interface is in English and a few other languages. It needs more translations. Maybe we can follow up separately on the wiki.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6518#discussion_r2591796110
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6518/review/3543568245 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251205/fc0b3d98/attachment.htm>
More information about the rails-dev
mailing list