fix how we resolve "default node", now using sortOrder

This commit is contained in:
Stephan
2012-09-30 12:25:47 -02:00
parent 3e99dd0d55
commit e45bf57632

View File

@@ -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