I have this HUGO shortcode setup for my links. Somehow HUGO renders the link with a whitespace in between te base url (localhost:1313/de
) and the traget url(localhost:1313/de/team
).
Render:
localhost:1313/de/ team
Dev-Tool:
http://localhost:1313/de/%20team
HUGO set up:
<div class="about-team">
{{ with .Site.GetPage "about/team" }}
<h1 class="about-team-title">{{ .Title | safeHTML}}</h1>
<div class="about-team-text">{{ .Content }}</div>
{{ end }}
<a href="{{- absLangURL "/team" -}}" class="primary-btn">{{ i18n "team" }}</a>
</div>
The -
at the start and the end of the shortcode should remove the whitespace according to this doc. But there are no changes at all.
What confuses me the most is the %20
.