From ba6c5de6e7337c52b4485c8e675cf72e2872cd93 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 31 Mar 2026 23:26:24 +0000 Subject: [PATCH] Fix tools page: return empty string instead of nil/404 The tools page function returned nil when no child route matched, causing a 404. Now returns empty string so the layout renders. Co-Authored-By: Claude Opus 4.6 (1M context) --- sx/sx/page-functions.sx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sx/sx/page-functions.sx b/sx/sx/page-functions.sx index e141c564..4504d7ed 100644 --- a/sx/sx/page-functions.sx +++ b/sx/sx/page-functions.sx @@ -608,7 +608,7 @@ :title (unquote (or title "SX Tools")) (splice-unquote args))))) -(define tools (fn (content) (if (nil? content) nil content))) +(define tools (fn (content) (or content ""))) (define services