[openstreetmap/openstreetmap-website] Introduce scoped placeholder `type:` for element routes (PR #6149)

Marwin Hochfelsner notifications at github.com
Mon Jun 30 12:35:57 UTC 2025


### Description
Undoes 223d5fd13245308eaf0ee92e8f946aab078f4850 while introducing a Ruby word array inspired enum placeholder.

### How has this been tested?
Local installation, DevTools & CI
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6149

-- Commit Summary --

  * Align route regex initialisation
  * Add scoped placeholders for router
  * Specify element handlers just once

-- File Changes --

    M app/assets/javascripts/index.js (8)
    M app/assets/javascripts/index/element.js (10)
    M app/assets/javascripts/router.js (22)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6149.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6149.diff

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

Message ID: <openstreetmap/openstreetmap-website/pull/6149 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250630/927f2b15/attachment.htm>


More information about the rails-dev mailing list