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

Open in new tab #1544

Closed
jfrolich opened this issue Feb 26, 2020 · 8 comments
Closed

Open in new tab #1544

jfrolich opened this issue Feb 26, 2020 · 8 comments
Milestone

Comments

@jfrolich
Copy link
Contributor

It would be great for Linking to provide an option to open in a new window/tab. (Or is there already a way to do this?)

@steida
Copy link

steida commented Feb 26, 2020

It's impossible to open a new tab without a link with the target.

@jfrolich
Copy link
Contributor Author

Sure? I think it's possible with window.open?

https://stackoverflow.com/questions/14132122/open-url-in-new-window-with-javascript

@steida
Copy link

steida commented Feb 26, 2020

Window, not tab. Remember it's restricted because of popups.

@jfrolich
Copy link
Contributor Author

Window, not tab. Remember it's restricted because of popups.

You are right. I formulated it wrong, it should be open in new tab.

@jfrolich jfrolich changed the title Open in new window Open in new tab Feb 27, 2020
@steida
Copy link

steida commented Feb 28, 2020

It's impossible. The user has to click to a link. Browsers require that.

@jfrolich
Copy link
Contributor Author

It's impossible. The user has to click to a link. Browsers require that.

window.open second argument is target, if I use that with "_blank" it opens in a new tab (at least in Chrome)

@Sharcoux
Copy link

Could this solve this issue?

@necolas necolas added this to the 0.15 milestone Dec 4, 2020
@avanwinkle
Copy link
Contributor

Resurrecting this thread to ask why the implementation hard-coded _blank as the target, instead of the other proposal #1743 which allowed a parameter?

I ask because there are scenarios where the desired behavior is not to open in a new tab, but that is currently impossible due to the hard-coded _blank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants