Update src/components/UI/docs/Breadcrumbs.tsx

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
This commit is contained in:
Corwin Smith 2022-12-06 10:35:44 -07:00 committed by GitHub
parent 5926da4aa7
commit 9107cf3988
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 = () => {
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);