Browse Source

Fixed path problem for parent nodes.

pull/533/head
Alper Ebicoglu 8 years ago
parent
commit
48de5618e3
  1. 7
      modules/docs/src/Volo.Docs.Web/Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs

7
modules/docs/src/Volo.Docs.Web/Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs

@ -118,7 +118,12 @@ namespace Volo.Docs.Areas.Documents.Helpers.TagHelpers
{
var pathWithoutFileExtension = RemoveFileExtensionFromPath(path);
return hasChildItems ? "javascript:;" : "/documents/" + ProjectName + "/" + Version + "/" + pathWithoutFileExtension;
if (string.IsNullOrWhiteSpace(path))
{
return "javascript:;";
}
return "/documents/" + ProjectName + "/" + Version + "/" + pathWithoutFileExtension;
}
private string RemoveFileExtensionFromPath(string path)

Loading…
Cancel
Save