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

Change link target to "_blank" #2

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

Conversation

rschroll
Copy link

This is the special name to cause all new links to open in a new tab/window.
(https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target)

I noticed the issue on your demo page when clicking a second link opened it in the same tag the first link had been opened in. I assume that's not the desired behavior.

This patch assumes that the goal was a new window, but the comments suggest the goal was to avoid the link opening within an iframe. If that's the case, _parent or _top could be used instead.

This is the special name to cause all new links to open
in a new tab/window.
(https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target)
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