# URL Domain prepending

**URL:** <https://discourse.gohugo.io/t/url-domain-prepending/27159>\
**Category:** support\
**Created:** [July 25, 2020, 12:09pm UTC](https://discourse.gohugo.io/t/url-domain-prepending/27159 "2020-07-25T12:09:15Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [July 26, 2020, 1:52pm UTC](https://discourse.gohugo.io/t/url-domain-prepending/27159/5 "2020-07-26T13:52:59Z")

</div>

1. When sharing code in the forums, use code fences not blockquotes. See [https://discourse.gohugo.io/t/sharing-code-in-the-forums/8968](https://discourse.gohugo.io/t/sharing-code-in-the-forums/8968).
2. The code displayed in your original post does not match the code in your repository. See #1.
3. You should run your final HTML through a validator such as [https://validator.w3.org/](https://validator.w3.org/). You’ve got some issues.
4. The [`urlize`](https://gohugo.io/functions/urlize/#readout) function does not do what you think it does. In this case, its misuse caused your problem. Do this instead:

```auto
<div style="color:grey; font-size:16px;">
  {{ if .Params.refs }}
    <strong>References:</strong><br>
    {{ range .Params.refs }}
      &nbsp;&nbsp;<a href="{{ . }}">{{ . }}</a><br>
    {{ end }}
  {{ end }}
</div>

```

---

_[View the full topic](https://discourse.gohugo.io/t/url-domain-prepending/27159)._
