mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Undoing my fix for the homepage link because it's way too late to debug tests
--HG-- branch : dev
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Orchard.UI.Navigation {
|
|||||||
|
|
||||||
public string GetUrl(string menuItemUrl, RouteValueDictionary routeValueDictionary) {
|
public string GetUrl(string menuItemUrl, RouteValueDictionary routeValueDictionary) {
|
||||||
var url = string.IsNullOrEmpty(menuItemUrl) && (routeValueDictionary == null || routeValueDictionary.Count == 0)
|
var url = string.IsNullOrEmpty(menuItemUrl) && (routeValueDictionary == null || routeValueDictionary.Count == 0)
|
||||||
? "~/"
|
? null
|
||||||
: !string.IsNullOrEmpty(menuItemUrl)
|
: !string.IsNullOrEmpty(menuItemUrl)
|
||||||
? menuItemUrl
|
? menuItemUrl
|
||||||
: _urlHelper.RouteUrl(routeValueDictionary);
|
: _urlHelper.RouteUrl(routeValueDictionary);
|
||||||
|
Reference in New Issue
Block a user