diff --git a/Composite/Core/Implementation/SitemapNavigatorImplementation.cs b/Composite/Core/Implementation/SitemapNavigatorImplementation.cs index 38df9e72ab..c3f2bded55 100644 --- a/Composite/Core/Implementation/SitemapNavigatorImplementation.cs +++ b/Composite/Core/Implementation/SitemapNavigatorImplementation.cs @@ -152,7 +152,7 @@ public virtual PageNode CurrentHomePageNode XElement pageXElement = GetElementByPageId(PageRenderer.CurrentPageId); - while (pageXElement.Parent != null) + while ((pageXElement.Parent != null) && (pageXElement.Parent.Name.LocalName == "Page")) { pageXElement = pageXElement.Parent; }