# External link to an anchor

**URL:** https://discourse.joplinapp.org/t/external-link-to-an-anchor/31742
**Category:** Features
**Created:** [15 July 2023 09:08 UTC](https://discourse.joplinapp.org/t/external-link-to-an-anchor/31742 "2023-07-15T09:08:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chentao](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@chentao](https://discourse.joplinapp.org/u/chentao)
#### Post date: [15 July 2023 09:08 UTC](https://discourse.joplinapp.org/t/external-link-to-an-anchor/31742/1 "2023-07-15T09:08:36Z")

</div>

Hi,

Are external links to an anchor supported ?

I tried :

```auto
[[Some text>>url:joplin://x-callback-url/openNote?id=3be2889f7f874730a7ef3dd065f3002f#test]].

```

but the `#test` part isn't working, the links always opens the note at the beginning.

Note : the anchor in the note is correctly set, because internal links to it work fine.

Is my syntax incorrect, or are external links to an anchor not supported ?

Versions : Joplin 2.11.11 / Debian 11

---

<div class="post-metadata">

### Author: ![roman\_r\_m](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/roman_r_m/32/3297_2.png) [@roman\_r\_m](https://discourse.joplinapp.org/u/roman_r_m)
#### Post date: [15 July 2023 09:29 UTC](https://discourse.joplinapp.org/t/external-link-to-an-anchor/31742/2 "2023-07-15T09:29:24Z")

</div>

External links to an anchor are not supported.

---

<div class="post-metadata">

### Author: ![executed](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/executed/32/24298_2.png) [@executed](https://discourse.joplinapp.org/u/executed)
#### Post date: [8 December 2024 23:27 UTC](https://discourse.joplinapp.org/t/external-link-to-an-anchor/31742/3 "2024-12-08T23:27:14Z")

</div>

Maybe anything has changed here? 🙂  
Where can I find the logic in the code?  
Is it going to bring any security issues if implemented?

---

<div class="post-metadata">

### Author: ![executed](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/executed/32/24298_2.png) [@executed](https://discourse.joplinapp.org/u/executed)
#### Post date: [9 December 2024 22:07 UTC](https://discourse.joplinapp.org/t/external-link-to-an-anchor/31742/4 "2024-12-09T22:07:07Z")

</div>

Even though I think I found an easy fix in the code - it's very hard to test this for 2 reasons:

1. When building project locally I don't understand how to trigger external link so that it hits my dev instance and not main instance;
2. There is a horrible bug when you follow a anchor link it first scrolls to right anchor, but then suddenly jumps back to the top - based on my findings it's scroll position restoring code in index.html.
