mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
gitbook url selected decode
This commit is contained in:
@@ -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 (
|
||||
<Link href={post?.href} passHref>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user