From 8333f05530963915bf018ba8cca0eba0d451f616 Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Wed, 4 Mar 2026 17:47:46 +0100 Subject: [PATCH] fix: strip session/ prefix in SessionIndex Navigate href (closes #34) --- app-prefixable/src/app.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app-prefixable/src/app.tsx b/app-prefixable/src/app.tsx index dd07f3b..35c5f8a 100644 --- a/app-prefixable/src/app.tsx +++ b/app-prefixable/src/app.tsx @@ -31,7 +31,9 @@ function DirectoryIndex() { function SessionIndex() { const params = useParams<{ dir: string }>() const href = getLastSessionHref(params.dir) - return href === "session" ? : + if (href === "session") return + const id = href.replace(/^session\//, "") + return } function AppRoutes() {