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

Use _blank instead of _new for link targets #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Krinkle
Copy link

@Krinkle Krinkle commented Feb 16, 2020

Target "_blank" is a reserved value which prompts the browser to create a new tab (or new window), and load the link question there.

Any other target value, including "_new", instructs the browser to seek a window with that internal ID ssigned to it (or create it if one doesn't exist yet), make it navigate to this link.

This means that when you've click a link, kept the tab open for further analsys and then go
back to the stream and click another, surprise surprise, it overwrites the tab you kept with
this new link.

I've confirmed this bug both in Firefox and in Chromium. See also https://stackoverflow.com/a/8867079/319266.

Target "_blank" is a reserved value which prompts the browser to create a new tab (or new window),
and load the link question there.

Any other target value, including "_new", instructs the browser to seek a window with that internal ID
assigned to it (or create it if one doesn't exist yet), make it navigate to this link.

This means that when you've click a link, kept the tab open for further analsys and then go
back to the stream and click another, surprise surprise, it overwrites the tab you kept with
this new link.
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

Successfully merging this pull request may close these issues.

1 participant