docs: adjust NavLink target handling (#5603)

This commit is contained in:
Taesu
2025-10-28 00:41:00 +09:00
committed by GitHub
parent 7a726b099c
commit 09ce64fd17

View File

@@ -1,4 +1,5 @@
"use client";
import Link from "next/link";
import { useSelectedLayoutSegment } from "next/navigation";
import { cn } from "@/lib/utils";
@@ -24,7 +25,7 @@ export const NavLink = ({ href, children, className, external }: Props) => {
"group-hover:text-foreground",
isActive ? "text-foreground" : "text-muted-foreground",
)}
target={external ? "_blank" : "_parent"}
target={external ? "_blank" : undefined}
>
{children}
</Link>