Remove all traces of "default.aspx"

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-12-10 21:42:57 -08:00
parent 3bbdac0eb6
commit 9e0387c76a
10 changed files with 147 additions and 156 deletions

View File

@@ -15,13 +15,15 @@ namespace Orchard.Specs.Hosting {
var physicalPath = Bleroy.FluentPath.Path.Get(webHost.PhysicalDirectory);
urlPath = StripVDir(urlPath, webHost.VirtualDirectory);
bool isHomepage = urlPath == "/";
if (!isHomepage)
urlPath = StripVDir(urlPath, webHost.VirtualDirectory);
var details = new RequestDetails {
HostName = webHost.HostName,
UrlPath = urlPath,
Page = physicalPath
.Combine(urlPath.TrimStart('/', '\\'))
.GetRelativePath(physicalPath)
Page = (isHomepage ? "" : physicalPath.Combine(urlPath.TrimStart('/', '\\')).GetRelativePath(physicalPath).ToString())
};
if (!string.IsNullOrEmpty(webHost.Cookies)) {