0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-12 04:43:32 +02:00

add .org to WebPathToUserTitle

This commit is contained in:
Aly Sewelam 2025-11-24 11:58:52 +02:00
parent 3ae4823383
commit 676a7856ac

View File

@ -139,6 +139,9 @@ func WebPathToUserTitle(s WebPath) (dir, display string) {
if before, ok := strings.CutSuffix(display, ".md"); ok {
display = before
display, _ = url.PathUnescape(display)
} else if strings.HasSuffix(display, ".org") {
display = strings.TrimSuffix(display, ".org")
display, _ = url.PathUnescape(display)
}
display, _ = unescapeSegment(display)
return dir, display