summaryrefslogtreecommitdiffstats
path: root/docs/content/en/_common/ref-and-relref-error-handling.md
blob: 1d67bbc1ff20f3463227c13900223e793cb0e3b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
---
_comment: Do not remove front matter.
---

By default, Hugo will throw an error and fail the build if it cannot resolve the path. You can change this to a warning in your site configuration, and specify a URL to return when the path cannot be resolved.

{{< code-toggle file=hugo >}}
refLinksErrorLevel = 'warning'
refLinksNotFoundURL = '/some/other/url'
{{< /code-toggle >}}