Fixes logic for determining if a domain is published and fixes logic for getting a url name for a variant taking into account it's published status

This commit is contained in:
Shannon
2018-05-08 11:21:14 +10:00
parent 6e61450788
commit 0e19ec7495
3 changed files with 33 additions and 7 deletions

View File

@@ -148,6 +148,11 @@ namespace Umbraco.Web.PublishedCache.NuCache
while (hasDomains == false && n != null) // n is null at root
{
var urlName = n.GetUrlName(_localizationService, culture);
if (urlName == null)
{
//we cannot continue, it will be null if the item is not published
return null;
}
pathParts.Add(urlName);