Fixes 29223

[TFS Changeset #78899]
This commit is contained in:
hartvig
2010-10-25 10:49:06 +00:00
parent 469c248db5
commit bd045838df

View File

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