<Link to="/newpage">New Page </Link>
I have started a project with nextjs and I want to open the link on a new page when I click on the path I introduced with route. How can i do this?
CodePudding user response:
Try this
<Link to="/newpage" target="_blank">New Page </Link>
CodePudding user response:
This is a idea of Html , If you have use target blank gives you a new tab open
New PageCodePudding user response:
Add target attribute on a tag
<Link href="/document/terms">
<a target="_blank">Link</a>
</Link>