mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#20711: Fixing hungry Href.
Fix provided by: qt1 (http://www.codeplex.com/site/users/view/qt1) Work Item: 20711
This commit is contained in:
@@ -207,10 +207,9 @@ namespace Orchard.Mvc.ViewEngines.Razor {
|
||||
&& !path.StartsWith("~/Themes", StringComparison.OrdinalIgnoreCase)
|
||||
&& !path.StartsWith("~/Media", StringComparison.OrdinalIgnoreCase)
|
||||
&& !path.StartsWith("~/Core", StringComparison.OrdinalIgnoreCase)) {
|
||||
|
||||
return base.Href("~/" + _tenantPrefix + path.Substring(2), pathParts);
|
||||
}
|
||||
|
||||
return base.Href("~/" + _tenantPrefix + path.Substring(String.IsNullOrWhiteSpace(_tenantPrefix) ? 2 : 1), pathParts);
|
||||
}
|
||||
}
|
||||
|
||||
return base.Href(path, pathParts);
|
||||
|
||||
Reference in New Issue
Block a user