diff --git a/themes/gitbook/components/BlogPostCard.js b/themes/gitbook/components/BlogPostCard.js index 3528512a..72755672 100644 --- a/themes/gitbook/components/BlogPostCard.js +++ b/themes/gitbook/components/BlogPostCard.js @@ -7,7 +7,9 @@ import CONFIG from '../config' const BlogPostCard = ({ post, className }) => { const router = useRouter() - const currentSelected = router.asPath.split('?')[0] === post?.href + const currentSelected = + decodeURIComponent(router.asPath.split('?')[0]) === post?.href + return (