Next.js Discord

Discord Forum

anchor target="_blank" always replaced by target="_top"

Answered
Netherland Dwarf posted this in #help-forum
Open in Discord
Avatar
Netherland DwarfOP
I've tried many ways using both a <Link> or a regular HTML anchor, and Nextjs always replaces the target attribute with _top, and gives an error in inspect
 Prop `target` did not match. Server: "_top" Client: "_blank"

It doesn't matter if it's a client component or in the server component. Anyone know a solution? Using nextjs 13.5.4

Edit: was an extension messing with _blank links.
Answered by Netherland Dwarf
I'm a fool, it was an extension messing with _blank links. Sorry to waste your time!
View full answer

2 Replies

Avatar
could you make a minimal reproduction repository?
Avatar
Netherland DwarfOP
I'm a fool, it was an extension messing with _blank links. Sorry to waste your time!
Answer