mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-28 00:27:26 +00:00
filter out anchor tag
This commit is contained in:
parent
94cb14b978
commit
5926da4aa7
1 changed files with 2 additions and 1 deletions
|
|
@ -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 (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Reference in a new issue