Skip to content

Commit

Permalink
fixed url generated for DirectoryName
Browse files Browse the repository at this point in the history
  • Loading branch information
Doraku committed Nov 1, 2024
1 parent 361844c commit f40a900
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ public sealed class DocItemFactory : IUrlFactory
.Concat(urlParts.Skip(startPart)));
}
}
else
{
url = url.Split('/').Last();
}

if (context.GetRemoveFileExtensionFromUrl() && Path.HasExtension(url))
{
Expand Down

0 comments on commit f40a900

Please sign in to comment.