From e45bf576322ed9920026420f773cfcf18b484b94 Mon Sep 17 00:00:00 2001 From: Stephan Date: Sun, 30 Sep 2012 12:25:47 -0200 Subject: [PATCH] fix how we resolve "default node", now using sortOrder --- src/Umbraco.Web/DefaultPublishedContentStore.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/DefaultPublishedContentStore.cs b/src/Umbraco.Web/DefaultPublishedContentStore.cs index 52fba94835..882976512a 100644 --- a/src/Umbraco.Web/DefaultPublishedContentStore.cs +++ b/src/Umbraco.Web/DefaultPublishedContentStore.cs @@ -119,8 +119,8 @@ namespace Umbraco.Web else { // if not in a domain - what is the default page? - // let's say it is the first one in the tree, if any - xpath = "(/root/*[@isDoc])[1]"; + // let's say it is the first one in the tree, if any -- order by sortOrder + xpath = "/root/*[@isDoc and @sortOrder='0']"; } } else