From 48cc392f1cc7929c458c754ff47b57a5be9c351f Mon Sep 17 00:00:00 2001 From: hartvig Date: Sun, 25 Jul 2010 21:15:16 +0000 Subject: [PATCH] Fixes 28172 [TFS Changeset #73911] --- umbraco/presentation/library.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/umbraco/presentation/library.cs b/umbraco/presentation/library.cs index 208eccd5f0..c9796d4b28 100644 --- a/umbraco/presentation/library.cs +++ b/umbraco/presentation/library.cs @@ -429,7 +429,7 @@ namespace umbraco // check root nodes for domains if (UmbracoSettings.UseDomainPrefixes && startNode > 1) { - if (node.ParentNode.Name.ToLower() == "node") + if (node.ParentNode.Name.ToLower() != "root") { Domain[] domains = Domain.GetDomainsById(int.Parse(node.ParentNode.Attributes.GetNamedItem("id").Value)); @@ -486,10 +486,16 @@ namespace umbraco private static string appendUrlExtension(string baseUrl, bool directoryUrls, string tempUrl) { if (!directoryUrls) + { // append .aspx extension if the url includes other than just the domain name if (tempUrl.ToString() != "" && (!tempUrl.StartsWith("http://") || tempUrl.Replace("http://", "").IndexOf("/") > -1)) tempUrl = baseUrl + tempUrl + ".aspx"; + } + else + { + tempUrl = baseUrl + tempUrl; + } return tempUrl; }