File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ public IEnumerable<UmbNavItem> BuildMenu(IEnumerable<UmbNavItem> items, int leve
6060 IPublishedContent ? umbracoContent = item . ItemType == UmbNavItemType . Media ?
6161 _publishedMediaCache . GetById ( contentKey )
6262 : _publishedContentCache . GetById ( contentKey ) ;
63- string ? currentCulture = umbracoContent ? . GetCultureFromDomains ( ) ;
6463
6564 if ( umbracoContent != null )
6665 {
@@ -82,12 +81,12 @@ public IEnumerable<UmbNavItem> BuildMenu(IEnumerable<UmbNavItem> items, int leve
8281 ContentKey = child . Key ,
8382 ItemType = UmbNavItemType . Document ,
8483 Level = level + 1 ,
85- Url = child . Url ( currentCulture ) ,
84+ Url = child . Url ( ) ,
8685 IsActive = child . Key == currentPublishedContentKey
8786 } ) ) ;
8887 }
8988
90- string . IsNullOrWhiteSpace ( item . Name ) . IfTrue ( ( ) => umbracoContent . Name ( currentCulture ) ) ;
89+ string . IsNullOrWhiteSpace ( item . Name ) . IfTrue ( ( ) => umbracoContent . Name ( ) ) ;
9190 }
9291 else
9392 {
You can’t perform that action at this time.
0 commit comments