[openstreetmap/openstreetmap-website] Fix home location error after page refresh (PR #7351)
Marwin Hochfelsner
notifications at github.com
Mon Aug 31 16:28:43 UTC 2026
@hlfan commented on this pull request.
> @@ -29,6 +29,30 @@ export default function (map) {
}
};
+ page.init = function () {
+ map.setSidebarOverlaid(true);
+ clearMarker();
+
+ if (OSM.home) {
+ const hashState = OSM.parseHash(location.hash);
+ if (!hashState.center) {
+ OSM.router.withoutMoveListener(function () {
Can we not duplicate this entire section?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7351#pullrequestreview-5068789666
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7351/review/5068789666 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260831/e35a24af/attachment-0001.htm>
More information about the rails-dev
mailing list