Remove default.aspx from Orchard.web

It hasn't been needed since MVC2, and it now broken with MVC3.

--HG--
branch : dev
extra : transplant_source : N%CA%B4%F6%13%9C%BE%2AL%14z_%13%A9%90cF%00%DCn
This commit is contained in:
Renaud Paquay
2010-12-10 21:09:53 -08:00
parent a4e824fb4a
commit 3bbdac0eb6
9 changed files with 135 additions and 187 deletions

View File

@@ -74,6 +74,9 @@ namespace Orchard.Specs.Hosting {
}
private static string StripVDir(string urlPath, string virtualDirectory) {
if (urlPath == "/")
return urlPath;
return urlPath.StartsWith(virtualDirectory, StringComparison.OrdinalIgnoreCase)
? urlPath.Substring(virtualDirectory.Length)
: urlPath;