anchor target="_blank" always replaced by target="_top"
Answered
Netherland Dwarf posted this in #help-forum
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
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.
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!
2 Replies
could you make a minimal reproduction repository?
Netherland DwarfOP
I'm a fool, it was an extension messing with _blank links. Sorry to waste your time!
Answer