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 new tab for external link #17

Open
mk1564 opened this issue Jun 25, 2021 · 1 comment
Open

Open new tab for external link #17

mk1564 opened this issue Jun 25, 2021 · 1 comment
Labels
Feature Request Some great ideas.

Comments

@mk1564
Copy link

mk1564 commented Jun 25, 2021

Hi. One quick question: is there a way to open new tab for an external hyper link? Thanks!

@dragonman225 dragonman225 added the Feature Request Some great ideas. label Jul 10, 2021
@dragonman225
Copy link
Owner

dragonman225 commented Jul 10, 2021

For now you can right-click -> "Open link in new tab" 🙂.

But this is a good suggestion, many sites open external (cross-origin) links in new tabs and users expect such a behavior. I'll look into it.

For reference, we can make a link open in a new tab by setting the target attribute , and we can distinguish internal links from external link by testing if they start with http(s?)://.

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

No branches or pull requests

2 participants