hugolib: Fix fallbacks for menu entry Name and Title

Closes #13161
This commit is contained in:
Joe Mooring
2024-12-18 11:41:47 -08:00
committed by Bjørn Erik Pedersen
parent 55ecd3a90e
commit b3f32949cb
2 changed files with 87 additions and 9 deletions

View File

@@ -1224,6 +1224,8 @@ func (s *Site) assembleMenus() error {
// If page is still nill, we must make sure that we have a URL that considers baseURL etc.
if types.IsNil(me.Page) {
me.ConfiguredURL = s.createNodeMenuEntryURL(me.MenuConfig.URL)
} else {
navigation.SetPageValues(me, me.Page)
}
flat[twoD{name, me.KeyName()}] = me