Refixed the homepage link and fixed the tests that were broken

- Added an ApplicationPath override to the StubHttpRequest

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-03-09 02:59:45 -08:00
parent 429ba7e054
commit 93d0f2cb22
2 changed files with 5 additions and 1 deletions

View File

@@ -34,6 +34,10 @@ namespace Orchard.Tests.Stubs {
get { return _appRelativeCurrentExecutionFilePath; }
}
public override string ApplicationPath {
get { return "/"; }
}
public override string PathInfo {
get { return ""; }
}

View File

@@ -35,7 +35,7 @@ namespace Orchard.UI.Navigation {
public string GetUrl(string menuItemUrl, RouteValueDictionary routeValueDictionary) {
var url = string.IsNullOrEmpty(menuItemUrl) && (routeValueDictionary == null || routeValueDictionary.Count == 0)
? null
? "~/"
: !string.IsNullOrEmpty(menuItemUrl)
? menuItemUrl
: _urlHelper.RouteUrl(routeValueDictionary);