{{- $u := urls.Parse .Destination -}} {{- $href := .Destination -}} {{- if and (not $u.IsAbs) (strings.HasPrefix .Destination "/") -}} {{- $href = relURL (strings.TrimPrefix "/" .Destination) -}} {{- end -}} {{ .Text }} {{- /* chomp */ -}}