From 5926da4aa7b49a45929ca22a37a7e163ebc4f405 Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Mon, 5 Dec 2022 11:38:04 -0700 Subject: [PATCH 1/3] filter out anchor tag --- src/components/UI/docs/Breadcrumbs.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/UI/docs/Breadcrumbs.tsx b/src/components/UI/docs/Breadcrumbs.tsx index e1b6f71304..217b9c524e 100644 --- a/src/components/UI/docs/Breadcrumbs.tsx +++ b/src/components/UI/docs/Breadcrumbs.tsx @@ -7,7 +7,8 @@ export const Breadcrumbs: FC = () => { const router = useRouter(); let pathSplit = router.asPath.split('/'); - pathSplit = pathSplit.splice(1, pathSplit.length); + pathSplit = pathSplit.splice(1, pathSplit.length) + .map((path) => path.includes('#') ? path.split('#')[0] : path); return ( <> From 9107cf39881c97d733a334ed55ff34d5b776cd41 Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Tue, 6 Dec 2022 10:35:44 -0700 Subject: [PATCH 2/3] Update src/components/UI/docs/Breadcrumbs.tsx Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --- src/components/UI/docs/Breadcrumbs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UI/docs/Breadcrumbs.tsx b/src/components/UI/docs/Breadcrumbs.tsx index 217b9c524e..2a23848177 100644 --- a/src/components/UI/docs/Breadcrumbs.tsx +++ b/src/components/UI/docs/Breadcrumbs.tsx @@ -6,7 +6,7 @@ import { FC } from 'react'; export const Breadcrumbs: FC = () => { const router = useRouter(); - let pathSplit = router.asPath.split('/'); + let pathSplit = router.asPath.split('#')[0].split('/'); pathSplit = pathSplit.splice(1, pathSplit.length) .map((path) => path.includes('#') ? path.split('#')[0] : path); From 5186a1f74fab326e2358302ade6143deb7e36648 Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Tue, 6 Dec 2022 10:35:48 -0700 Subject: [PATCH 3/3] Update src/components/UI/docs/Breadcrumbs.tsx Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --- src/components/UI/docs/Breadcrumbs.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/UI/docs/Breadcrumbs.tsx b/src/components/UI/docs/Breadcrumbs.tsx index 2a23848177..c451bb78fd 100644 --- a/src/components/UI/docs/Breadcrumbs.tsx +++ b/src/components/UI/docs/Breadcrumbs.tsx @@ -7,8 +7,7 @@ export const Breadcrumbs: FC = () => { const router = useRouter(); let pathSplit = router.asPath.split('#')[0].split('/'); - pathSplit = pathSplit.splice(1, pathSplit.length) - .map((path) => path.includes('#') ? path.split('#')[0] : path); + pathSplit = pathSplit.splice(1, pathSplit.length); return ( <>