aboutsummaryrefslogtreecommitdiff
path: root/website/src/components/SiteTitle.astro
diff options
context:
space:
mode:
Diffstat (limited to 'website/src/components/SiteTitle.astro')
-rw-r--r--website/src/components/SiteTitle.astro5
1 files changed, 3 insertions, 2 deletions
diff --git a/website/src/components/SiteTitle.astro b/website/src/components/SiteTitle.astro
index f6a3b7d0..576e7635 100644
--- a/website/src/components/SiteTitle.astro
+++ b/website/src/components/SiteTitle.astro
@@ -1,7 +1,8 @@
---
-const { siteTitle, siteTitleHref } = Astro.locals.starlightRoute;
+const { siteTitle, siteTitleHref, locale } = Astro.locals.starlightRoute;
const isPreview = Astro.url.pathname === '/docs/preview/' || Astro.url.pathname.startsWith('/docs/preview/');
-const docsHref = isPreview ? '/docs/preview/' : '/docs/';
+const localePrefix = locale ? `/${locale}` : '';
+const docsHref = isPreview ? '/docs/preview/' : `${localePrefix}/docs/`;
---
<div class="title-row sl-flex">