From bd045838df25e1ce94706cb7852c14d09afa1fa1 Mon Sep 17 00:00:00 2001 From: hartvig Date: Mon, 25 Oct 2010 10:49:06 +0000 Subject: [PATCH] Fixes 29223 [TFS Changeset #78899] --- umbraco/presentation/library.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umbraco/presentation/library.cs b/umbraco/presentation/library.cs index 360764073a..3bdd530eb2 100644 --- a/umbraco/presentation/library.cs +++ b/umbraco/presentation/library.cs @@ -557,8 +557,8 @@ namespace umbraco 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)) + if (!String.IsNullOrEmpty(tempUrl) && tempUrl != "/" && + (!tempUrl.StartsWith("http://") || tempUrl.LastIndexOf("/") > 7)) tempUrl = baseUrl + tempUrl + ".aspx"; } else