c# - Calling node.NiceUrl gives me # in Umbraco -


doing project in umbraco, , i've encountered problems in 1 case when calling node.niceurl # result. weird though if debug somehow resolves correct url.

var pages = pages.select((item, index) => new {     url = item.niceurl,     selected = item.id == currentpage.id,     index = index }).tolist(); 

where pages obtained from:

currentpage.parent.childrenaslist 

if way, works, don't know why.

 url = new node(item.id).niceurl, 

Comments