From 30c2b6bea9018d06755db1388016ec69d59fa10a Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Tue, 25 Aug 2026 17:05:09 +0200 Subject: [PATCH] Gates keep the question nav The qualifies and requires_chain gates replaced the whole page, footer nav included - a visitor hitting one had only the wordmark as a way out. Co-Authored-By: Claude Fable 5 --- src/app.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 664fcb5..bb8fda2 100644 --- a/src/app.rs +++ b/src/app.rs @@ -200,6 +200,7 @@ fn QuestionView( site: SiteConfig, ) -> impl IntoView { let question_id = question.id.clone(); + let has_chain = parent_hash.is_some(); // The provenance counterpart to the qualifies gate below: a // requires_chain page whose visitor holds no verifiable lineage to @@ -226,6 +227,8 @@ fn QuestionView( + // A gate is never a dead end: the same nav as every page. + } .into_any(); } @@ -261,6 +264,7 @@ fn QuestionView( }} + } .into_any(); } @@ -270,7 +274,6 @@ fn QuestionView( // on pages where some alternative actually declares a deck. let needs_swiper = question.alternatives.iter().any(|a| a.images.len() > 1); - let has_chain = parent_hash.is_some(); view! { {needs_swiper.then(|| view! { })}