From b1916d6b2aab9db19abbb76ad6eab8a822337859 Mon Sep 17 00:00:00 2001 From: Alper Ebicoglu Date: Fri, 28 Sep 2018 11:46:09 +0300 Subject: [PATCH] Added empty javascript:; for no link navigation nodes. --- .../Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/docs/src/Volo.Docs.Web/Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs b/modules/docs/src/Volo.Docs.Web/Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs index e79e4acf28..571c84f923 100644 --- a/modules/docs/src/Volo.Docs.Web/Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs +++ b/modules/docs/src/Volo.Docs.Web/Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs @@ -108,7 +108,7 @@ namespace Volo.Docs.Areas.Documents.Helpers.TagHelpers : node.Path; return string.Format(LiItemTemplate, - node.Path.IsNullOrEmpty() ? "#" : "/documents/" + ProjectName + "/" + Version + "/" + normalizedPath, + node.Path.IsNullOrEmpty() ? "javascript:;" : "/documents/" + ProjectName + "/" + Version + "/" + normalizedPath, node.Text.IsNullOrEmpty() ? "?" : node.Text, content, node.HasChildItems ? "nav-header" : "last-link",