From 7ae03628d21ef686aefa1886e719304532d71bf5 Mon Sep 17 00:00:00 2001 From: andreymaz Date: Wed, 28 Nov 2012 18:09:29 +0400 Subject: [PATCH] Further changes on changeset fad19db4346e --- .../Nop.Web/Administration/Views/Shared/Menu.cshtml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Presentation/Nop.Web/Administration/Views/Shared/Menu.cshtml b/src/Presentation/Nop.Web/Administration/Views/Shared/Menu.cshtml index a77007cd904..d52aade22da 100644 --- a/src/Presentation/Nop.Web/Administration/Views/Shared/Menu.cshtml +++ b/src/Presentation/Nop.Web/Administration/Views/Shared/Menu.cshtml @@ -17,10 +17,14 @@ Html.Telerik().Menu().Name("Admin") .BindTo("admin", (item, siteMapNode) => { - item.RouteValues = new RouteValueDictionary() - { - { "area", "Admin" } - }; + if (!String.IsNullOrWhiteSpace(item.ControllerName)) + { + //apply admin area as described here - http://www.nopcommerce.com/boards/t/20478/broken-menus-in-admin-area-whilst-trying-to-make-a-plugin-admin-page.aspx + item.RouteValues = new RouteValueDictionary() + { + { "area", "Admin" } + }; + } var imageUrl = siteMapNode.Attributes["ImageUrl"]; if (imageUrl != null && !string.IsNullOrEmpty(imageUrl.ToString()))