From b7e7a5330f44f1ab509be0d488d1ca9170307447 Mon Sep 17 00:00:00 2001 From: Mathis Date: Mon, 14 Sep 2026 22:43:12 +0000 Subject: [PATCH] fix(ferndesk): replace underscores in slugs (FernDesk POST 400) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 19 problems-* pages failed create with HTTP 400; pages without underscores in the slug (conflict/forbidden/gone) succeeded. Normalize _ → - in article slugs. --- scripts/ferndesk_sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ferndesk_sync.py b/scripts/ferndesk_sync.py index 1a6487b..69c6c1a 100755 --- a/scripts/ferndesk_sync.py +++ b/scripts/ferndesk_sync.py @@ -429,7 +429,8 @@ def discover_pages(docs_root: Path) -> list[dict]: { "path": rel, "title": title, - "slug": slug.replace("/", "-"), + # FernDesk rejects underscores in slugs (POST 400); normalize. + "slug": slug.replace("/", "-").replace("_", "-"), "collection": coll, "markdown": md, "fp": fp,