[openstreetmap/openstreetmap-website] Login page does not check if a user is logged in (Issue #5441)

Dimitar notifications at github.com
Tue Dec 24 18:22:46 UTC 2024


### URL

https://www.openstreetmap.org/login?referer=%2Fedit%3Frelation%3D15090094#map=19/33.411025/-114.923289

### How to reproduce the issue?

1.  Open osm.org in a container that is not normally used for osm.org (i.e. you are not logged in there)
2. Press "Edit" (you are redirected to the login page, some referrer value is added to the URL)
3. Change the container of the tab (right click tab -> "Open in new container tab" -> select the container where you are logged into OSM)
4. The login page is displayed even though you are logged in
 
The expected behavior would be to check if the user is logged in already and if he is, redirect him to the `referer` or to the main page. 

The bug appears in Firefox when using [multi-account-containers](https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/). I don't know if it's reproducible in other browsers.

### Screenshot(s) or anything else?

![image](https://github.com/user-attachments/assets/aa1728de-3370-4d44-8a81-43fc7eef925d)


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

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


More information about the rails-dev mailing list