[openstreetmap/openstreetmap-website] Refreshing after clicking 'Go To Home Location' doesn't work (Issue #7187)

Mohd Farhan Akhtar notifications at github.com
Mon Aug 31 12:07:55 UTC 2026


imfarhan0105-bits left a comment (openstreetmap/openstreetmap-website#7187)

I’ve been running into this issue for quite some time now, so I went ahead and worked on a fix for it.

I looked into how the Home Location page is initialized and found that the map was being reset to the user’s home location on refresh, even when a different position was already present in the URL hash.

I’ve updated the logic so that clicking **“Go to Home Location”** still works as expected, while refreshing a URL with a `#map=...` position now respects the location specified in the hash.

I’ve also added a regression test covering this behaviour and checked the relevant parts of the code to make sure the change stays consistent with the existing implementation.

I’ll be attaching the pull request shortly with the complete changes.


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

Message ID: <openstreetmap/openstreetmap-website/issues/7187/5478089161 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260831/11b756f4/attachment.htm>


More information about the rails-dev mailing list