From ad7c938bfabf7e37d7e36fa6faac13c9ce22574a Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 29 Apr 2026 13:49:23 +0200 Subject: [PATCH] fix(routes): root path "/" now routes to LandingAction StaticPagesController parseRoute' used endOfInput for "/", but IHP passes the raw path string so the parser received "/" not "". Match it explicitly with string "/" before endOfInput, consistent with all other routes. Co-Authored-By: Claude Sonnet 4.6 --- Web/Routes.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Routes.hs b/Web/Routes.hs index 661f9f0..249c698 100644 --- a/Web/Routes.hs +++ b/Web/Routes.hs @@ -304,7 +304,7 @@ instance AutoRoute SessionsController -- WP-0015 — Public intro / tutorial pages (manual routing so / is the root) instance CanRoute StaticPagesController where parseRoute' = choice - [ do endOfInput; pure LandingAction + [ do _ <- string "/"; endOfInput; pure LandingAction , do _ <- string "/capabilities"; endOfInput; pure CapabilitiesAction , do _ <- string "/tutorial"; endOfInput; pure TutorialAction , do _ <- string "/extension-guide"; endOfInput; pure ExtensionGuideAction