You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We made a number of intentional breaking changes in v0.123.0, but I don't think this was one of them.
With v0.122.0 and earlier, if you didn't provide a name field when defining a menu entry in your site configuration:
The .Name method would fall back to the page’s LinkTitle then to its Title.
The .Title method would fall back to the page's Title.
That doesn't happen with v0.123.0 and later.
Also, with v0.123.0 and later, if the pageRef menu entry field points to a section page, and the name field is not defined, the PageRef method returns an empty string, and more importantly, Page returns nothing.
Reference: https://discourse.gohugo.io/t/section-menu-items-with-no-name-are-not-rendered/52778
We made a number of intentional breaking changes in v0.123.0, but I don't think this was one of them.
With v0.122.0 and earlier, if you didn't provide a
name
field when defining a menu entry in your site configuration:.Name
method would fall back to the page’sLinkTitle
then to itsTitle
..Title
method would fall back to the page'sTitle
.That doesn't happen with v0.123.0 and later.
Also, with v0.123.0 and later, if the
pageRef
menu entry field points to a section page, and thename
field is not defined, thePageRef
method returns an empty string, and more importantly,Page
returns nothing.failing test
The text was updated successfully, but these errors were encountered: