From db79d87c088ced1e8a7bd2a5f0ee7f4c7221b887 Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 4 Sep 2013 16:09:54 +1000 Subject: [PATCH] Fixes infinite loop ... oops. --- src/Umbraco.Web/Routing/UrlProviderExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Routing/UrlProviderExtensions.cs b/src/Umbraco.Web/Routing/UrlProviderExtensions.cs index c963ff5408..f9341920d1 100644 --- a/src/Umbraco.Web/Routing/UrlProviderExtensions.cs +++ b/src/Umbraco.Web/Routing/UrlProviderExtensions.cs @@ -27,7 +27,7 @@ namespace Umbraco.Web.Routing var parent = content; do { - parent = parent.ParentId > 0 ? content.Parent() : null; + parent = parent.ParentId > 0 ? parent.Parent() : null; } while (parent != null && parent.Published);