In my render-link.html render hook I’m using .Page.GetPage to find cheat-sheet.md. This used to work up to Hugo 0.122 but since 0.123 this call returns “nil” (or something falsy).
In content/articles/cpp-cli/passing-native-pointers/index.md you have this markdown:
[C++/CLI](cheat-sheet.md)
That’s ambiguous, due to your use of .Site.GetPage in your link render hook.
Although I haven’t taken the time to study your link render hook in detail (and I don’t want to), I can tell you from experience that .Page.GetPage is almost always a better choice in this context. You might have a look at Hugo’s embedded link render hook, disabled by default and overriden like any other embedded template:
@jmooring Sorry for not being more clear about the problem here.
Basically I have this code:
{{- $targetPage := .Page.GetPage .Destination -}}
{{- if not $targetPage -}}
{{- /* Page still not found. Try site wide search. */ -}}
{{- $targetPage = site.GetPage .Destination -}}
{{- end -}}
Up until Hugo 0.122, the call to .Page.GetPage found the page. Now, with Hugo 0.123, .Page.GetPage no longer finds the page - which then results in the fallback to site.GetPage which reports the ambigious reference.