Fixed a bug in NavigationManager so the home page link in the menu will work

--HG--
branch : dev
This commit is contained in:
Erik Porter
2010-03-09 02:21:24 -08:00
parent 0291653273
commit 0a2e640820

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);