Skip to content

Commit 36c23b8

Browse files
author
Aly Sewelam
committed
Add .org condition to escapeSegToWeb
1 parent 3931b8f commit 36c23b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/wiki/wiki_path.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func unescapeSegment(s string) (string, error) {
7676
}
7777

7878
func escapeSegToWeb(s string, hadDashMarker bool) string {
79-
if hadDashMarker || strings.Contains(s, "-") || strings.HasSuffix(s, ".md") {
79+
if hadDashMarker || strings.Contains(s, "-") || strings.HasSuffix(s, ".md") || strings.HasSuffix(s, ".org") {
8080
s = addDashMarker(s)
8181
} else {
8282
s = strings.ReplaceAll(s, " ", "-")

0 commit comments

Comments
 (0)