From 80a43e039d8aaa274ce182198e53c2bd11f1b9d1 Mon Sep 17 00:00:00 2001 From: Remko Date: Thu, 1 Feb 2024 13:17:42 +0100 Subject: [PATCH] Prefix fix --- pwa/src/components/breadcrumbs/Breadcrumbs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwa/src/components/breadcrumbs/Breadcrumbs.tsx b/pwa/src/components/breadcrumbs/Breadcrumbs.tsx index c033dbd..12b9720 100644 --- a/pwa/src/components/breadcrumbs/Breadcrumbs.tsx +++ b/pwa/src/components/breadcrumbs/Breadcrumbs.tsx @@ -16,7 +16,7 @@ export const Breadcrumbs: React.FC = () => { const { gatsbyContext } = useGatsbyContext(); const pageSlugLabel = () => { - const splitNumber = process.env.GATSBY_USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX === "true" ? 3 : 1; + const splitNumber = process.env.GATSBY_USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX === "true" ? 2 : 1; const stringLabel = location.pathname.split("/")[splitNumber]; return stringLabel?.replaceAll("_", " ");