Make IPublishedContent changes less breaking and more friendly

This commit is contained in:
Stephan
2019-06-06 16:54:00 +02:00
parent c17dbbe141
commit 7fd6bfa163
45 changed files with 481 additions and 454 deletions

View File

@@ -157,7 +157,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
pathParts.Add(urlSegment);
// move to parent node
n = n.Parent();
n = n.Parent;
if (n != null)
urlSegment = n.UrlSegment(culture);
@@ -206,7 +206,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
// "/foo" fails (looking for "/*/foo") we try also "/foo".
// this does not make much sense anyway esp. if both "/foo/" and "/bar/foo" exist, but
// that's the way it works pre-4.10 and we try to be backward compat for the time being
if (content.Parent() == null)
if (content.Parent == null)
{
var rootNode = GetByRoute(preview, "/", true);
if (rootNode == null)