From 6e614142a1d1ed0312a8974533e9d19739fe77ff Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Tue, 20 Dec 2022 14:20:20 +0100 Subject: [PATCH] fix hash-link bug with left docs nav (#195) --- src/components/UI/docs/DocsLinks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UI/docs/DocsLinks.tsx b/src/components/UI/docs/DocsLinks.tsx index d76a814cbb..935a1e4bca 100644 --- a/src/components/UI/docs/DocsLinks.tsx +++ b/src/components/UI/docs/DocsLinks.tsx @@ -35,7 +35,7 @@ export const DocsLinks: FC = ({ navLinks, toggleMobileAccordion }) => { navLinks.reduce( (acc, navLink) => ({ ...acc, - [navLink.id]: checkNavLinks({ items: navLink.items, pathCheck: asPath }) + [navLink.id]: checkNavLinks({ items: navLink.items, pathCheck: asPath.split('#')[0] }) }), {} )