-
-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Added default value to link's "rel" when link's "target" is "_blank" #761
Conversation
Did you see the related issues when searching for What is your aversion to using a plugin instead of passing options? |
It’s an old issue from before plugins worked. They are closed because there is a better alternative. |
I beg to differ 🙂 |
Everything is a trade off. The trade off here is between a small project that everyone uses or a big project with features many people do not use. |
IMO this should be a part of this library, however I understand where you're coming from. For future generations, this is what I ended up with:
|
Glad you found something that works, and thanks for the PR! |
Initial checklist
Description of changes
When a link's
target
is set to_blank
, the consensus is addingrel="noopener noreferrer"
.I added this as the default behavior and also allowed overriding this value.
This was discussed in the past: #413 and in the prehistoric #12