Anchor links in topics are hidden behind header bar when linked to externally

AI-generated summary

Anchor links in topics are hidden behind header bar when linked to externally, a problem is occurring when linking to specific sections within a topic. tobiaseigen describes the issue, where clicking on a link within the topic works as expected, but linking directly to a section from an external source results in the linked section being hidden behind the header menu.

tobiaseigen provides a replicable example using their FAQ topic, where clicking on the “guided tour” link within the topic works correctly, but linking directly to the section using https://community.namati.org/t/faq-frequently-asked-questions-about-the-network-platform/1467#tour hides the section heading and first few lines.

dax confirms that this is the same issue they reported in a previous post, providing an example of how the issue occurs even when using HTML anchors correctly.

On my site, I have a lengthy FAQ topic with a table of contents at the top and section headings linked to using <a name="heading"></a> style anchors. Once on the topic, it works quite well to click around and find answers.

However, when I link to a section directly, it doesn’t work properly. The linked to section is hidden behind the header menu.

To replicate:

It is the same thing I reported at the end of this post https://meta.discourse.org/t/html-anchors-should-be-added/16455/33?u=trash

For example:

<a name="tips"></name>
<p>
</p>
---
``
##[AduTips](#tips)

It works, as long as you are using with the header (obviously you can not use in a list):

إعجاب واحد (1)