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

Adds missing rel="noopener noreferrer" to each link element with target="_blank" #13959

Merged
merged 1 commit into from
May 31, 2023

Conversation

mabashian
Copy link
Member

@mabashian mabashian commented May 5, 2023

SUMMARY

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/noopener
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/noreferrer

noopener may be overkill at this point given:

Note: Setting target="_blank" on <a> elements now implicitly provides the same rel behavior as setting rel="noopener" which does not set window.opener. See [browser compatibility](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#browser_compatibility) for support status.

I didn't want to make assumptions about browsers though so I went ahead and made it consistent.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • UI

Copy link
Member

@AlexSCorey AlexSCorey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@mabashian mabashian merged commit fbe202b into ansible:devel May 31, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants