From be69ef9eeb8f8f59b3b26fc60378a7af7ca97cdc Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 2 Jun 2026 21:58:37 +0300 Subject: fix: preserve preview docs navigation --- website/src/components/SiteTitle.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'website/src/components/SiteTitle.astro') diff --git a/website/src/components/SiteTitle.astro b/website/src/components/SiteTitle.astro index 1173f2b6..d35da5d6 100644 --- a/website/src/components/SiteTitle.astro +++ b/website/src/components/SiteTitle.astro @@ -1,5 +1,7 @@ --- const { siteTitle, siteTitleHref } = Astro.locals.starlightRoute; +const isPreview = Astro.url.pathname === '/docs/preview/' || Astro.url.pathname.startsWith('/docs/preview/'); +const docsHref = isPreview ? '/docs/preview/' : '/docs/'; ---
@@ -8,7 +10,7 @@ const { siteTitle, siteTitleHref } = Astro.locals.starlightRoute; {siteTitle} -- cgit v1.2.3