# Hugo sometimes doesn't process relref / rel correctly and I end up with literally {% ... output

**URL:** <https://discourse.gohugo.io/t/hugo-sometimes-doesnt-process-relref-rel-correctly-and-i-end-up-with-literally-output/50983>\
**Category:** support\
**Created:** [August 2, 2024, 5:05pm UTC](https://discourse.gohugo.io/t/hugo-sometimes-doesnt-process-relref-rel-correctly-and-i-end-up-with-literally-output/50983 "2024-08-02T17:05:29Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![nickjanetakis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nickjanetakis/32/23871_2.png) [@nickjanetakis](https://discourse.gohugo.io/u/nickjanetakis)\
**Post date:** [August 6, 2024, 10:15pm UTC](https://discourse.gohugo.io/t/hugo-sometimes-doesnt-process-relref-rel-correctly-and-i-end-up-with-literally-output/50983/17 "2024-08-06T22:15:33Z")

</div>

I could try creating a repo using the quickstart tutorial and a link hook from the docs then build things in an infinite loop over night and see if that does anything.

But let’s say it doesn’t produce a single rendering failure. I’m now on one side of the spectrum with a minimal example and then I have my real site where it is a problem. I don’t feel like I have the tools necessary to determine where the issue is based on the outputs I receive from Hugo.

I will say this, my site isn’t doing anything crazy. It’s using all constructs provided by Hugo and Go. The only reason it’s not open source is because I have ~1.5 GB of images and I didn’t want to put them in a repo.

I guess where I’m going with this one is, I’m not sure how having code like this:

```auto
  {{ $banner := .Params.Banner | default .Site.Params.Site.DefaultBanner }}
  {{ if $banner }}
    {{ partial (print "cta/banners/" $banner ".html") . }}
  {{ end }}

```

Or this:

```auto
    {{ if .Params.Newsletter | default true }}
      {{ $partial := .Params.Newsletter | default "newsletter" }}
      {{ $newsletter := print "cta/" $partial ".html" }}
      {{ partial $newsletter . }}
    {{ end }}

```

Will be related to the links not being processed correctly.

As for image outputs being a new problem with v0.131.0, I’ve posted my [full image partial](https://discourse.gohugo.io/t/how-to-cache-bust-static-files-with-a-fingerprinted-file-name/50695/18) in the other thread where we figured out a solution to the fingerprint delimiter. The YouTube shortcode is straight from the docs / Hugo.

In this post I’ve posted my exact unedited link render hook and how I’m overriding the `relref` shortcode to strip the trailing slash. That’s the only things related to link processing right?

---

_[View the full topic](https://discourse.gohugo.io/t/hugo-sometimes-doesnt-process-relref-rel-correctly-and-i-end-up-with-literally-output/50983)._
