From 9f180360788688bdba4b59b318a4027dd8563845 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Mon, 22 Aug 2022 14:29:31 +0200 Subject: [PATCH] fix: hydration error --- packages/website/src/components/SidebarLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/website/src/components/SidebarLayout.tsx b/packages/website/src/components/SidebarLayout.tsx index 4592d5751..ff2ec1e28 100644 --- a/packages/website/src/components/SidebarLayout.tsx +++ b/packages/website/src/components/SidebarLayout.tsx @@ -97,7 +97,7 @@ export function SidebarLayout({ packageName, data, children }: PropsWithChildren )); - const asPathWithoutQuery = router.asPath.split('?')[0]; + const asPathWithoutQuery = router.asPath.split('?')[0]?.split('#')[0]; const breadcrumbs = asPathWithoutQuery?.split('/').map((path, idx, original) => ( {path}