Link
A Link component that handles external links
A component that wraps next/link
and handles external links in the document.
When an external URL is detected, it uses <a>
instead of the Next.js Link
Component. rel
property is automatically generated.
Usage
Same as using <a>
.
External
You can force an URL to be external by passing an external
prop.
Dynamic hrefs
Dynamic hrefs are no longer supported in Next.js App Router. You can enable
dynamic hrefs by importing dynamic-link
instead.
Edit on GitHub
Last updated on