[openstreetmap/openstreetmap-website] Notes controller calls set_locale after lookup_user which can cause unexpected language for 404 users notes (Issue #5251)

Grant notifications at github.com
Mon Oct 7 10:46:23 UTC 2024


### URL

https://www.openstreetmap.org/user/Omaraltab/notes

### How to reproduce the issue?

Refreshing the URL occasionally returns the 404 page in an unexpected language.

https://github.com/openstreetmap/openstreetmap-website/blob/acd899d26dbf09620d598d74759fc6f7aac4846a/app/controllers/notes_controller.rb#L12

### Screenshot(s) or anything else?

Page unexpectedly in German:
<img width="1011" alt="Screenshot 2024-10-07 at 11 40 39" src="https://github.com/user-attachments/assets/9a733469-4572-45a1-8968-0ad472914c8a">


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

Message ID: <openstreetmap/openstreetmap-website/issues/5251 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241007/ddaaf86e/attachment.htm>


More information about the rails-dev mailing list