Skip to content

Commit

Permalink
Merge pull request #119 from ConductionNL/feature/GW-1629/product-action
Browse files Browse the repository at this point in the history
Prefix fix
  • Loading branch information
remko48 authored Feb 1, 2024
2 parents 70a1976 + 80a43e0 commit 4beb1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwa/src/components/breadcrumbs/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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("_", " ");
Expand Down

0 comments on commit 4beb1d9

Please sign in to comment.