# REF\_NOT\_FOUND in source code blocks

**URL:** https://discourse.gohugo.io/t/ref-not-found-in-source-code-blocks/40526
**Category:** support
**Created:** [September 14, 2022, 11:37am UTC](https://discourse.gohugo.io/t/ref-not-found-in-source-code-blocks/40526 "2022-09-14T11:37:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dorneanu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/dorneanu/32/17755_2.png) [@dorneanu](https://discourse.gohugo.io/u/dorneanu)
#### Post date: [September 14, 2022, 11:37am UTC](https://discourse.gohugo.io/t/ref-not-found-in-source-code-blocks/40526/1 "2022-09-14T11:37:10Z")

</div>

Hi,

in one of my markdown files I use following source code block:

```auto

```

…

- 2022-09-05 ◦ [Authenticating SSH via User Certificates (server) · Yubikey Handbook](https://ruimarinho.gitbooks.io/yubikey-handbook/content/ssh/authenticating-ssh-via-user-certificates-server/) ([SSH]({{\< relref “…/topics/ssh.md” \>}}))  
…

```auto

```

When I then run `hugo` to generate HTML content out of the markdown file (containing the source code snippet above) I get following error message:

```auto
ERROR 2022/09/13 21:37:18 [en] REF_NOT_FOUND: Ref "../topics/ssh.md": "/home/blog/content/posts/2022-migrate-tiddlywiki-to-org-roam-part-2.md:65:21": page not found

```

I guess it has to do with this part (in the code block):

```auto
([SSH]({{< relref "../topics/ssh.md" >}})

```

How do I make sure that refs in source code blocks are not parsed/interpreted?

Thanks in advance.

KR,  
Victor

---

<div class="post-metadata">

### Author: ![fekete-robert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/fekete-robert/32/13363_2.png) [@fekete-robert](https://discourse.gohugo.io/u/fekete-robert)
#### Post date: [September 14, 2022, 2:11pm UTC](https://discourse.gohugo.io/t/ref-not-found-in-source-code-blocks/40526/2 "2022-09-14T14:11:38Z")

</div>

Like this:

`{{</* relref "../topics/ssh.md" */>}}`

---

<div class="post-metadata">

### Author: ![IanMadd](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ianmadd/32/9452_2.png) [@IanMadd](https://discourse.gohugo.io/u/IanMadd)
#### Post date: [September 14, 2022, 7:50pm UTC](https://discourse.gohugo.io/t/ref-not-found-in-source-code-blocks/40526/3 "2022-09-14T19:50:25Z")

</div>

You can also set an error level in your site config file so it just gives a warning.

> **[Links and Cross References](https://gohugo.io/content-management/cross-references/#ref-and-relref-configuration)**
>
> Shortcodes for creating links to documents.
