[openstreetmap/openstreetmap-website] Preserve hash for map element navigation (PR #7220)
Marwin Hochfelsner
notifications at github.com
Thu Jul 9 13:11:38 UTC 2026
@hlfan commented on this pull request.
> @@ -204,6 +204,7 @@ OSM.Router = function (map, rts) {
const clickEvent = new (event.constructor)("click", eventOptions);
const link = document.createElement("a");
link.href = href;
+ link.hash = location.hash;
But what do we gain with this information?
e.g. in https://www.openstreetmap.org/note/2409825?lat=44.881&lon=14.328#map=16/44.88155/14.33190&layers=N after navigation from /query to /note/.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7220#discussion_r3551829547
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7220/review/4663242775 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260709/77caf20c/attachment.htm>
More information about the rails-dev
mailing list