From 5926da4aa7b49a45929ca22a37a7e163ebc4f405 Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Mon, 5 Dec 2022 11:38:04 -0700 Subject: [PATCH] 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 ( <>