Merge pull request #128 from ethereum/breadcrumbHeaderBug

[Logic bug] - Breadcrumbs contains header id
This commit is contained in:
Corwin Smith 2022-12-06 18:56:13 +01:00 committed by GitHub
commit 50b50e853c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import { FC } from 'react';
export const Breadcrumbs: FC = () => { export const Breadcrumbs: FC = () => {
const router = useRouter(); const router = useRouter();
let pathSplit = router.asPath.split('/'); let pathSplit = router.asPath.split('#')[0].split('/');
pathSplit = pathSplit.splice(1, pathSplit.length); pathSplit = pathSplit.splice(1, pathSplit.length);
return ( return (