From b19f5436f679be7683e1db5d87eaa3c0c67ba07c Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 31 Mar 2026 23:28:05 +0000 Subject: [PATCH] Fix hypermedia index: return empty string instead of nil/404 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same pattern as tools — passthrough returning nil fell through to parent geography page. Now returns empty string so layout renders with correct nav context. 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 4504d7ed..585c7e60 100644 --- a/sx/sx/page-functions.sx +++ b/sx/sx/page-functions.sx @@ -38,7 +38,7 @@ (define etc (fn (content) (if (nil? content) (quote (<>)) content))) -(define hypermedia (fn (content) (if (nil? content) nil content))) +(define hypermedia (fn (content) (or content ""))) (define reactive