# Internal links to anchors that live in templates

**URL:** <https://zola.discourse.group/t/internal-links-to-anchors-that-live-in-templates/1290>\
**Category:** Support\
**Created:** [April 27, 2022, 9:12am UTC](https://zola.discourse.group/t/internal-links-to-anchors-that-live-in-templates/1290 "2022-04-27T09:12:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsautereau-anssi](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/tsautereau-anssi/32/729_2.png) [@tsautereau-anssi](https://zola.discourse.group/u/tsautereau-anssi)\
**Post date:** [April 27, 2022, 9:12am UTC](https://zola.discourse.group/t/internal-links-to-anchors-that-live-in-templates/1290/1 "2022-04-27T09:12:03Z")

</div>

Hi,

I just want to make sure I’m not missing something.

I have some sort of page footer that is generated with a template, which contains in particular:

```auto
<h2>Useful Links<a class="zola-anchor" href="#{{ id }}">🔗</a></h2>

```

Pages that use this footer contain internal links to this anchor, e.g. `(cf. [Useful Links](#useful-links))`. They used to work correctly but after a zola update, the site won’t build anymore as the link checker raises errors about non-existent anchors in links. As far as I can tell, this is due to [this commit](https://github.com/getzola/zola/commit/51784aa60f398bc32ab3898fc55fa7e7b371ac72) that made the link checker handle “naked anchor links”. And since configuration variables `skip_prefixes` and `skip_anchor_prefixes` only target external links, and there’s no way to disable the link checker from the command line, I think I’m stuck.

So my question is: am I right that internal links to anchor that are generated using a template are not possible anymore in zola, or am I missing something? Thanks a lot for any clarification!

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [April 27, 2022, 7:20pm UTC](https://zola.discourse.group/t/internal-links-to-anchors-that-live-in-templates/1290/2 "2022-04-27T19:20:13Z")

</div>

Can you confirm it still errors with [Next version by Keats · Pull Request #1741 · getzola/zola · GitHub](https://github.com/getzola/zola/pull/1741) ? I believe we should add some ways to skip internal anchors as well if not.

---

<div class="post-metadata">

**Author:** ![tsautereau-anssi](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/tsautereau-anssi/32/729_2.png) [@tsautereau-anssi](https://zola.discourse.group/u/tsautereau-anssi)\
**Post date:** [April 28, 2022, 11:45am UTC](https://zola.discourse.group/t/internal-links-to-anchors-that-live-in-templates/1290/3 "2022-04-28T11:45:19Z")

</div>

Yes, I still get the same errors.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [April 28, 2022, 1:00pm UTC](https://zola.discourse.group/t/internal-links-to-anchors-that-live-in-templates/1290/4 "2022-04-28T13:00:25Z")

</div>

@mwcz would it be useful for you as well?

---

<div class="post-metadata">

**Author:** ![mwcz](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/mwcz/32/579_2.png) [@mwcz](https://zola.discourse.group/u/mwcz)\
**Post date:** [April 30, 2022, 3:28pm UTC](https://zola.discourse.group/t/internal-links-to-anchors-that-live-in-templates/1290/5 "2022-04-30T15:28:55Z")

</div>

I know we have template-\>template internal anchors, but I don’t think we have any markdown-\>template anchors. It’s possible though, since we have 600+ broken internal anchors.

I think my upcoming changes to make link checker error levels configurable will help here, they’ll allow the site to build, but the warnings would still appear.

I’m wondering why the heuristic link checker doesn’t solve the problem here? [Add heuristic checking for HTML anchors by phillord · Pull Request #1716 · getzola/zola · GitHub](https://github.com/getzola/zola/pull/1716)
