From 36c23b8b8a42a386ad086816282d5ec0da23c23b Mon Sep 17 00:00:00 2001 From: Aly Sewelam Date: Mon, 24 Nov 2025 11:53:55 +0200 Subject: [PATCH] Add .org condition to escapeSegToWeb --- services/wiki/wiki_path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/wiki/wiki_path.go b/services/wiki/wiki_path.go index fc032244b5..23945eae2c 100644 --- a/services/wiki/wiki_path.go +++ b/services/wiki/wiki_path.go @@ -76,7 +76,7 @@ func unescapeSegment(s string) (string, error) { } func escapeSegToWeb(s string, hadDashMarker bool) string { - if hadDashMarker || strings.Contains(s, "-") || strings.HasSuffix(s, ".md") { + if hadDashMarker || strings.Contains(s, "-") || strings.HasSuffix(s, ".md") || strings.HasSuffix(s, ".org") { s = addDashMarker(s) } else { s = strings.ReplaceAll(s, " ", "-")