[openstreetmap/openstreetmap-website] Ignore invalid object IDs in various redirects (PR #7372)

Tom Hughes notifications at github.com
Tue Sep 8 17:59:22 UTC 2026


This fixes some exceptions seen in glitchtip when people pass invalid node/way/relation IDs and we try and build URLs from them causing a `ActionController::UrlGenerationError` exception.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Ignore invalid object IDs in various redirects

-- File Changes --

    M app/controllers/site_controller.rb (16)
    M test/controllers/site_controller_test.rb (28)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list