filter out anchor tag

This commit is contained in:
Corwin Smith 2022-12-05 11:38:04 -07:00
parent 94cb14b978
commit 5926da4aa7
1 changed files with 2 additions and 1 deletions

View File

@ -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 (
<>