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 post's links in a new tab #60

Open
danimesq opened this issue Jul 5, 2017 · 0 comments
Open

Open post's links in a new tab #60

danimesq opened this issue Jul 5, 2017 · 0 comments
Milestone

Comments

@danimesq
Copy link
Member

danimesq commented Jul 5, 2017

Isn't a good practice open external links in the same tab.
Nofish said:

Actually this is because technical limitation. ZeroNet running sites sandboxed iframe where the links with target="_blank" does not work properly in every browser.
Probably related to https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/

iframes can communicate with the main frame with JavaScript. ZeroNet can create a API for it.
When user clicks a link (that is modified for the code work), then the main receives this message with the link metadata, and then does the work.
Suggested to ZeroNet in HelloZeroNet/ZeroNet#897.

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

No branches or pull requests

1 participant