Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Option open target blank in Router Push #8279

Closed
duyha1309 opened this issue Aug 7, 2019 · 3 comments
Closed

Need Option open target blank in Router Push #8279

duyha1309 opened this issue Aug 7, 2019 · 3 comments

Comments

@duyha1309
Copy link

Question about Next.js

Hi every body, I want open target blank when using Router.push, But i don't look option in document for open new windown when router push to url.
I using method:

**Router.push({

pathname: '/about',
query: { name: 'Zeit' }

});**

Please �show me option,
Thanks

@etc-tiago
Copy link

Hi @duyha1309, I think Router.push is to continue on the same page and upload new content to that page. Try using window.open ('www.yourdomain.com', '_ blank'); instead of Route.push.

@timneutkens
Copy link
Member

Questions should be posted on https://spectrum.chat/next-js as per the issue template. @etc-tiago is right.

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants