mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user