From 6d64b61323a34e2412422cbea0fa8468748ea279 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Tue, 5 Nov 2024 21:53:17 +0100 Subject: [PATCH] update --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 735102a..57a4a86 100644 --- a/main.ts +++ b/main.ts @@ -198,7 +198,7 @@ Deno.serve({ }); const ssrContext: DJSSRContext = { styles: {}, registry: {}, head: { title: "", metatags: [] } }; if (router) { - await router.replace(pathname.split("/generative-energy")[1]); + await router.replace(pathname.split('/' + baseDirectoryName)[1]); await router.isReady(); } const rendered = await renderToString(app, ssrContext);