diff --git a/docs/api-reference/next/router.md b/docs/api-reference/next/router.md index 8467607594fe95..08956aae35fca0 100644 --- a/docs/api-reference/next/router.md +++ b/docs/api-reference/next/router.md @@ -17,7 +17,7 @@ function ActiveLink({ children, href }) { const router = useRouter() const style = { marginRight: 10, - color: router.pathname === href ? 'red' : 'black', + color: router.asPath === href ? 'red' : 'black', } const handleClick = (e) => {