[openstreetmap/openstreetmap-website] Add user id redirect paths (PR #4215)

Anton Khorev notifications at github.com
Fri Sep 1 16:05:26 UTC 2023


Add paths like `/uid/123` that redirect to user pages for users that are visible.

The idea is to extend them later for deleted users to make some of their pages available. For example, it is sometimes necessary to see the deleted user's edit history. The history is available through the api, but the website won't show anything because there's no valid url for the user.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add user id redirect paths
  * Add error page for incorrect user ids

-- File Changes --

    M app/controllers/concerns/user_methods.rb (12)
    M app/controllers/users_controller.rb (21)
    A app/views/users/no_such_user_id.html.erb (4)
    M config/locales/en.yml (4)
    M config/routes.rb (1)
    M test/controllers/users_controller_test.rb (26)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list