# Navigating to local URL fragment doesn't modify browser history

**URL:** <https://meta.discourse.org/t/navigating-to-local-url-fragment-doesnt-modify-browser-history/155624>\
**Category:** Product Support\
**Created:** [22 ביוני,‏ 2020,‏ 9:35pm UTC](https://meta.discourse.org/t/navigating-to-local-url-fragment-doesnt-modify-browser-history/155624 "2020-06-22T21:35:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gar1t](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gar1t/32/380142_2.png) [@gar1t](https://meta.discourse.org/u/gar1t)\
**Post date:** [22 ביוני,‏ 2020,‏ 9:35pm UTC](https://meta.discourse.org/t/navigating-to-local-url-fragment-doesnt-modify-browser-history/155624/1 "2020-06-22T21:35:49Z")

</div>

When I include a [link to a section in a page](#link-target) - that link, when clicked, does not modify the browser history. Navigating back proceeds to navigate away from the pager, rather than return to page position where the link is defined.

Edit: Well on this Discourse I’m unable to create an element with an ID, so I can’t demo this here. The source here is what I’d like to be doing - but this is just to illustrate and doesn’t impact the gist of my issue:

```plaintext
<div id="link-target"></div>

*This section is linked to from above. Nothing to see here.*

```

---

_[View the full topic](https://meta.discourse.org/t/navigating-to-local-url-fragment-doesnt-modify-browser-history/155624)._
