umbraco/The-Starter-Kit

TopNavigation gets the 'Site' node incorrectly and usage of Where("Visible")

Closed this issue · 0 comments

Currently the logic does:

var site = Model.Content.AncestorsOrSelf().Last();

but it should do:

var site = Model.Content.Site();

as this is the best practice format to get the site node, it's easier to write and it performs better

(i'll fix up)