How do I manually create anchor links in articles?



image avatar

Ricardo Pinto

Zendesk Digital Resources Team

Edited Apr 11, 2025


2

22

22 comments

Hi Zendesk Team, Please advise why it not redirect to exact location we set. it always goes up and down.

0


Hi, when clicking an anchor link in an article, it sometimes does not reach the exact location in the destination - sometimes above, sometimes below. This can sometimes be even a page above or below. Are you aware of this issue which makes using anchor tags in articles a bit problematic. Also, according to this reference, using the name attribute (as advised in your article) has been deprecated and replaced with id. Even replacing with id does not always cause the link to reach the desired destination. Would be grateful to hear what others are experiencing and possible workarounds for this issue. At this point, I am minimizing my use of anchors as much as possible. Thanks!

0


Hello Shahir,
 
We would need to see the actual article where your anchors are added. Please reach out to our Support Team and provide as much information as possible. You may follow the guide here: Contacting Zendesk Customer Support.
 
Best,
Paolo | Technical Support Engineer | Zendesk

0


This does not work. I've tried linking from one article to another article using the heading id. I've created an <a name="something"></a> anchor in an article, then linked to it from another article using [article url]#something. I just get the top of the article, not the anchor, every time. I also tried adding a “name” attribute in the h tag (e.g. <h2 id="e348543573" name="useful-name"> and upon saving the article the name attribute is deleted! 
It would sure be nice to link from one article to a heading in another one but I cannot do this at all. 

0


Hi Mark, thanks for your question.
 
Anchor links are not specific to Zendesk. This is a HTML element and it should work even if the link is outside Zendesk.
Maybe try with a different web browser. This may be due to the configuration of your browser.

0


I find that I cannot link to anchors within articles from outside Zendesk. For example, we want to link into a section of an article from our UI, so we create an anchor for that section that works fine within Zendesk. But the link from the UI just goes to the top of the article. 

Zendesk, is there a fix or workaround for this?

0


Hello Rhonda, thank you for your question!

I can confirm that this is the expected behaviour. When you create an anchor on a heading, once clicked, the "link" will send the user to right below said heading. The idea here is that the user reads the link/phrase that has the hyperlink/anchor, so there would be no need for them to read it again, once they are directed to the paragraphed that is referenced. 

You can see an example of this following this link. This is a hyperlink to an anchor section of the article. Specifically to the section called "Adding articles to the knowledge base" but the link takes you to just below the heading, since you would have already read it if you had seen the article.

You could theoretically create the anchor on a phrase that is right above the heading, so that when you are redirected, you could see the heading instead. But this would mean that you would need to create a different heading for this. 

I hope this was helpful!

0


We are finding that the when anchor link is clicked, it dropped well below the heading.  I have noticed this in every article that we have tried to anchor.  Is this a known issue? 

0


However in another article, I added an anchor tag, and the anchor appears in the Headings list and there is no Anchors section?

1


OK, something changed today, now when I am manually adding anchors, and then go to the links, I see a new section called Anchors?

1


Sign in to leave a comment.