From 8014bb0a8505fbbe4e03e5045b25d3d45399d0df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Fri, 4 May 2018 10:28:27 +0300 Subject: [PATCH] Allow empty menu url --- .../Shared/Components/Theme/MainNavbar/Menu/Default.cshtml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Views/Shared/Components/Theme/MainNavbar/Menu/Default.cshtml b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Views/Shared/Components/Theme/MainNavbar/Menu/Default.cshtml index 16197ddf1f..32a62b0d49 100644 --- a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Views/Shared/Components/Theme/MainNavbar/Menu/Default.cshtml +++ b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Views/Shared/Components/Theme/MainNavbar/Menu/Default.cshtml @@ -1,11 +1,10 @@ -@using System -@using Volo.Abp.UI.Navigation +@using Volo.Abp.UI.Navigation @model ApplicationMenu @foreach (var menuItem in Model.Items) { if (menuItem.IsLeaf) { - if (menuItem.Url.IsNullOrEmpty()) + if (menuItem.Url == null) { continue; }