diff --git a/layouts/partials/bootstrap/functions/url.html b/layouts/partials/bootstrap/functions/url.html index 9de59b3..4d505a0 100644 --- a/layouts/partials/bootstrap/functions/url.html +++ b/layouts/partials/bootstrap/functions/url.html @@ -8,8 +8,8 @@ {{- else }} {{- if hasPrefix $url "/" }} {{- $url = relURL $url }} - {{- else }} - {{- $url = printf "%s%s" .Page.RelPermalink $url }} + {{- else if not (hasPrefix $url "#") }} + {{- $url = printf "%s%s" .Page.Permalink $url }} {{- end }} {{- end }} {{- end }}