From f40a900b1c07e4fff019d1b3899341c9a5980607 Mon Sep 17 00:00:00 2001 From: Laszlo Paillat Date: Fri, 1 Nov 2024 14:18:58 +0100 Subject: [PATCH] fixed url generated for DirectoryName --- .../UrlFactories/DocItemFactory.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/DefaultDocumentation.Markdown/UrlFactories/DocItemFactory.cs b/source/DefaultDocumentation.Markdown/UrlFactories/DocItemFactory.cs index 939b9c54..6238b66b 100644 --- a/source/DefaultDocumentation.Markdown/UrlFactories/DocItemFactory.cs +++ b/source/DefaultDocumentation.Markdown/UrlFactories/DocItemFactory.cs @@ -85,6 +85,10 @@ public sealed class DocItemFactory : IUrlFactory .Concat(urlParts.Skip(startPart))); } } + else + { + url = url.Split('/').Last(); + } if (context.GetRemoveFileExtensionFromUrl() && Path.HasExtension(url)) {