Hi, I used to employ the ./some-anchor notation, with the leading dot, to indicate a local link. It used to be translated automatically into the good permalink, without hardcoding “prefix . = .Page.Permalink” or something like that. Now .Destination = “./bonobo” for instance gives:
{{- $url := urls.Parse .Destination }}
{{- $page := site.GetPage $url.Path }}
{{- $fragment := $url.Fragment }}
{{- if $page }}
{{- $destination = $page.RelPermalink }}
{{- with $fragment }}
{{- $destination = print $destination "#" $fragment }}
{{- end }}
{{- else -}}
{{with resources.Get .Destination}}{{ $destination = .RelPermalink}}{{end}}
{{- end }}
gives the root page plus the fragment. I really don’t remember having touched the code, but I don’t know. Thanks for looking at it, if it seems like a normal behavior.