filter out anchor tag
This commit is contained in:
parent
94cb14b978
commit
5926da4aa7
|
@ -7,7 +7,8 @@ export const Breadcrumbs: FC = () => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
let pathSplit = router.asPath.split('/');
|
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 (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in New Issue