bugfix UriUtility when running in a virtual directory

This commit is contained in:
Stephan
2012-10-25 12:28:33 -02:00
parent 62a48df421
commit 6ffc231be0

View File

@@ -64,13 +64,14 @@ namespace Umbraco.Web
public static Uri UriFromUmbraco(Uri uri)
{
var path = uri.GetSafeAbsolutePath();
if (path == "/")
return uri;
if (!GlobalSettings.UseDirectoryUrls)
path += ".aspx";
else if (UmbracoSettings.AddTrailingSlash)
path += "/";
if (path != "/")
{
if (!GlobalSettings.UseDirectoryUrls)
path += ".aspx";
else if (UmbracoSettings.AddTrailingSlash)
path += "/";
}
path = ToAbsolute(path);