# Silent link seems can't handle #anchor links

**URL:** https://meta.discourse.org/t/silent-link-seems-cant-handle-anchor-links/294363
**Category:** Support
**Created:** [February 6, 2024, 4:09pm UTC](https://meta.discourse.org/t/silent-link-seems-cant-handle-anchor-links/294363 "2024-02-06T16:09:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [February 6, 2024, 4:09pm UTC](https://meta.discourse.org/t/silent-link-seems-cant-handle-anchor-links/294363/1 "2024-02-06T16:09:39Z")

</div>

Hello 👋

We use this new feature, silent links for [Disable notifications for watched words link](https://meta.discourse.org/t/disable-notifications-for-watched-words-link/285321) but it seems the silent link can’t handle anchor, like TOC.

If I add a silent link. It won’t jump to the correct position.  
For example:  
[https://meta.discourse.org/t/-/93648#hello-world-remote-12?silent=true](https://meta.discourse.org/t/-/93648#hello-world-remote-12?silent=true)

without silent it works well  
[https://meta.discourse.org/t/-/93648#hello-world-remote-12](https://meta.discourse.org/t/-/93648#hello-world-remote-12)

Is it possible to add a function to handle the anchor links?

I am not sure the good place is #Contribute > Bug or #Contribute > Feature but I think this feature primarily made to redirect to post and not to an anchor inside post, so I put it in #Contribute > Feature instead.

Thank you 🙂

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [February 6, 2024, 4:37pm UTC](https://meta.discourse.org/t/silent-link-seems-cant-handle-anchor-links/294363/2 "2024-02-06T16:37:34Z")

</div>

I believe the query should always come before the hash.  
See the [specification](https://www.rfc-editor.org/rfc/rfc3986#section-3) here. 🤔

This works: [https://meta.discourse.org/t/-/93648?silent=true#hello-world-remote-12](https://meta.discourse.org/t/-/93648?silent=true#hello-world-remote-12)

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [February 6, 2024, 4:43pm UTC](https://meta.discourse.org/t/silent-link-seems-cant-handle-anchor-links/294363/3 "2024-02-06T16:43:35Z")

</div>

Thanks @Arkshine 🙂 That was my bad. 😄 I don’t know why I thought that was the good way to use it. Thanks a lot for the clarification. ❤

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 7, 2024, 1:48am UTC](https://meta.discourse.org/t/silent-link-seems-cant-handle-anchor-links/294363/4 "2024-02-07T01:48:08Z")

</div>

Note there is a minor glitch in my implementation: `?hello=1&silent=true` (multi params) are probably not going to work, but I can’t really think of legit cases where we need multi param support and this feature.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 8, 2024, 1:48am UTC](https://meta.discourse.org/t/silent-link-seems-cant-handle-anchor-links/294363/5 "2024-03-08T01:48:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
