# Leaflet zoom controls interpreted as anchor links

**URL:** <https://talk.observablehq.com/t/leaflet-zoom-controls-interpreted-as-anchor-links/10849>\
**Category:** Feedback\
**Created:** [September 14, 2026, 1:37pm UTC](https://talk.observablehq.com/t/leaflet-zoom-controls-interpreted-as-anchor-links/10849 "2026-09-14T13:37:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neocarto](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/neocarto/32/6554_2.png) [@neocarto](https://talk.observablehq.com/u/neocarto)\
**Post date:** [September 14, 2026, 1:37pm UTC](https://talk.observablehq.com/t/leaflet-zoom-controls-interpreted-as-anchor-links/10849/1 "2026-09-14T13:37:29Z")

</div>

There’s an issue with the Leaflet zoom controls. The buttons are being interpreted as links (the + and − are underlined), and clicking them takes you to the `#` anchor at the top of the page. I think this is related to the 2026-09-11 release (“Clicking an anchor link now scrolls and updates the address bar”).

See [https://observablehq.com/@neocarto/feedback-leaflet-zoom-controls](https://observablehq.com/@neocarto/feedback-leaflet-zoom-controls)

---

<div class="post-metadata">

**Author:** ![jwoLondon](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jwolondon/32/259_2.png) [@jwoLondon](https://talk.observablehq.com/u/jwoLondon)\
**Post date:** [September 14, 2026, 3:17pm UTC](https://talk.observablehq.com/t/leaflet-zoom-controls-interpreted-as-anchor-links/10849/2 "2026-09-14T15:17:39Z")

</div>

It’s a bit hacky, but a short workaround is to remove the http # anchor so it is no longer intercepted by an enthusiastic Observable 2.0.

See:

[https://observablehq.com/d/c902f9be17cb35f8](https://observablehq.com/d/c902f9be17cb35f8)

---

<div class="post-metadata">

**Author:** ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)\
**Post date:** [September 14, 2026, 4:53pm UTC](https://talk.observablehq.com/t/leaflet-zoom-controls-interpreted-as-anchor-links/10849/3 "2026-09-14T16:53:42Z")

</div>

Thanks for the report, we’ve just fixed that bug.

---

<div class="post-metadata">

**Author:** ![neocarto](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/neocarto/32/6554_2.png) [@neocarto](https://talk.observablehq.com/u/neocarto)\
**Post date:** [September 15, 2026, 7:44am UTC](https://talk.observablehq.com/t/leaflet-zoom-controls-interpreted-as-anchor-links/10849/4 "2026-09-15T07:44:17Z")

</div>

Great!
