# Hash/anchors are being stripped from URLs on mobile. How to stop that?

**URL:** <https://meta.discourse.org/t/hash-anchors-are-being-stripped-from-urls-on-mobile-how-to-stop-that/408505>\
**Category:** Product Support\
**Tags:** mobile\
**Created:** [25 juli 2026 om 09:10 UTC](https://meta.discourse.org/t/hash-anchors-are-being-stripped-from-urls-on-mobile-how-to-stop-that/408505 "2026-07-25T09:10:40Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![one1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/one1/32/493591_2.png) [@one1](https://meta.discourse.org/u/one1)\
**Post date:** [26 juli 2026 om 12:25 UTC](https://meta.discourse.org/t/hash-anchors-are-being-stripped-from-urls-on-mobile-how-to-stop-that/408505/5 "2026-07-26T12:25:59Z")

</div>

> [@Lilly](#):
>
> instead of just linking to the header you want?

Because those header links are extremely fragile. This is what the one you gave looks like:

`https://meta.discourse.org/t/-/148916#p-738234-cloudflare-r2-13`

See that `-13` at the end? It’s there because it’s the thirteenth heading. As soon as you add a new heading earlier in the document it breaks. And of course if you change the text of the heading it breaks.

When I say breaks, I mean changes in the target document. From what I can tell those anchors are generated dynamically when the page is loaded. So if you are using the TOC plugin changing the document is not a problem.

In our use case, this is a FAQ being linked to. So it is not uncommon to add new questions/headings.

But you are correct that Discourse seems to detect the pattern of those anchors and allows them through. But if it doesn’t match the expected pattern then it gets stripped.

> [@Lilly](#):
>
> can you give an example of what your anchor link looks like?

They are just ordinary alphanumeric ids. So if I were trying to create an anchor for your example above I would just use `cloudflare-r2`.

---

_[View the full topic](https://meta.discourse.org/t/hash-anchors-are-being-stripped-from-urls-on-mobile-how-to-stop-that/408505)._
