# Deep linking (headers) isn't working for my site in Firefox?

**URL:** https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586
**Category:** Support
**Created:** [9월 14, 2019, 4:31오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586 "2019-09-14T16:31:26Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![dsfg](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dsfg](https://meta.discourse.org/u/dsfg)
#### Post date: [9월 14, 2019, 4:31오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/1 "2019-09-14T16:31:26Z")

</div>

Hi,  
I try to structure a longer post with deep links like [Linking to a heading within a post or topic](https://meta.discourse.org/t/deep-linking-to-headings-anchors/47552).  
But there is no reaction of Firefox to clicks to the links.  
It would be helpful as anybody can explain to me what is wrong or missing.

Here the relevant code example snippets:

- in the first paragraph :  
`:warning: Don’t forget: you have to activate ([how to see below](#heading--linktest)) the *Share Publicly* option :exclamation: Otherwise the Station ID is only useful for[...]`
- and ths last words :  
`[how to see below](<absolute link including https:// until the number of topic>/1#heading--linktest))`

the anchor is somewhere in the middle:

```plaintext
<h7 id='heading--linktest'>Link to </h7>
* next pint 

```

I tried for the anchor as well seversal differnt h#-versions and  
`<a id='heading--linktest'>Link to </a>` with and without any text between '\> and \</

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [9월 14, 2019, 11:46오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/2 "2019-09-14T23:46:45Z")

</div>

Does the link in that post work [Linking to a heading within a post or topic](https://meta.discourse.org/t/deep-linking-to-headings-anchors/47552) for you?

I just tested in Firefox, both anon and logged in, and the link in the above post ↑ behaves as expected.

Can you confirm the same?

---

<div class="post-metadata">

### Author: ![dsfg](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dsfg](https://meta.discourse.org/u/dsfg)
#### Post date: [9월 15, 2019, 12:07오전 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/3 "2019-09-15T00:07:25Z")

</div>

Yes, the link in the original post woks as expected.

Is there an option or plugin which has to be set / activated?  
The non-working example is in a different instance.

---

<div class="post-metadata">

### Author: ![dsfg](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dsfg](https://meta.discourse.org/u/dsfg)
#### Post date: [9월 15, 2019, 12:37오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/4 "2019-09-15T12:37:51Z")

</div>

Do you have an idea to that issue, beside modifying the title of the topic, which is now ore precise,o.k.

---

<div class="post-metadata">

### Author: ![Heather\_Dudley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heather_dudley/32/151925_2.png) [@Heather\_Dudley](https://meta.discourse.org/u/Heather_Dudley)
#### Post date: [9월 15, 2019, 2:42오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/5 "2019-09-15T14:42:00Z")

</div>

Question: where do you compose your code? I did a batch of coding in Google docs (working collaboratively) and totally forgot about the curly quotes. Programs like docs will autocorrect that, and curly quotes are NOT the same as straight quotes.

I banged my head against that code for an hour before I figured out the problem.

---

<div class="post-metadata">

### Author: ![dsfg](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dsfg](https://meta.discourse.org/u/dsfg)
#### Post date: [9월 15, 2019, 8:10오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/6 "2019-09-15T20:10:00Z")

</div>

I used the editor included in the discourse platform and actually used a German keyboard layout so it might be an issue of character encoding.

---

<div class="post-metadata">

### Author: ![dsfg](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dsfg](https://meta.discourse.org/u/dsfg)
#### Post date: [9월 16, 2019, 10:40오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/7 "2019-09-16T22:40:42Z")

</div>

Right now, I tried to make a private message here within the relevant snippets.

Even no expected behavior, as well. @codinghorror so the “my site” in title is not appropriate. Modify again?  
Maybe @eviltrout has an idea?  
Does someone want to have a look to that (private) test topic here?

The other way around: copying the raw code of the original topic to a new private topic on my site shows the expected behavior. So, it is probably no configuration, version or plug-in issue.

---

<div class="post-metadata">

### Author: ![dsfg](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dsfg](https://meta.discourse.org/u/dsfg)
#### Post date: [9월 16, 2019, 11:02오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/8 "2019-09-16T23:02:04Z")

</div>

Maybe, I figured it out :  
The h7 tag is not defined?  
The anchor at a h6-Tag works as expected, at a h7 nothing. This is the same for the `<a>`.  
The `<h6>` acts as expected even if it is without any text to be displayed. Then the issue of the “heading gab” still remains (independent of h-level).  
So for inline anchors `<a name=“anchor”></a> ` is the way to go? … but will not act as expected in my case.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [9월 17, 2019, 1:25오전 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/9 "2019-09-17T01:25:50Z")

</div>

> [@dsfg](#):
>
> The h7 tag is not defined?

AFAIK there is no such thing and 1 to 6 is the range.

> **[4.4.6 The h1, h2, h3, h4, h5, and h6 elements — HTML5: Edition for Web Authors](https://www.w3.org/TR/2011/WD-html5-author-20110809/the-h1-h2-h3-h4-h5-and-h6-elements.html)**

I suppose it might be possible to put together a custom DTD but IMHO it would be easier going sticking with valid HTML

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [9월 17, 2019, 1:49오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/10 "2019-09-17T13:49:19Z")

</div>

Indeed, we only support `h1` to `h6` in our code:

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/pretty-text/sanitizer.js.es6#L130](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/pretty-text/sanitizer.js.es6#L130)

---

<div class="post-metadata">

### Author: ![dsfg](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dsfg](https://meta.discourse.org/u/dsfg)
#### Post date: [9월 18, 2019, 9:47오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/11 "2019-09-18T21:47:32Z")

</div>

O.K.  
Maybe don’t see the point or have to change the structure of the post completely.  
I tried several ideas to use a `<a>`-Tag with an id or name option to set an anchor to jump to. But on both instances there is no apropriate action.  
Is the general id-Option implemented ?  
How would an eample look like?  
Do I miss anything ?

---

<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: [5월 1, 2023, 10:45오후 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/12 "2023-05-01T22:45:20Z")

</div>



---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [5월 2, 2023, 12:12오전 UTC](https://meta.discourse.org/t/deep-linking-headers-isnt-working-for-my-site-in-firefox/128586/13 "2023-05-02T00:12:24Z")

</div>


