mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 07:18:56 -05:00
docs: adjust NavLink target handling (#5603)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user