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)) {