Skip to content

Commit 676a785

Browse files
author
Aly Sewelam
committed
add .org to WebPathToUserTitle
1 parent 3ae4823 commit 676a785

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/wiki/wiki_path.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ func WebPathToUserTitle(s WebPath) (dir, display string) {
139139
if before, ok := strings.CutSuffix(display, ".md"); ok {
140140
display = before
141141
display, _ = url.PathUnescape(display)
142+
} else if strings.HasSuffix(display, ".org") {
143+
display = strings.TrimSuffix(display, ".org")
144+
display, _ = url.PathUnescape(display)
142145
}
143146
display, _ = unescapeSegment(display)
144147
return dir, display

0 commit comments

Comments
 (0)