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

Add rel="noopener" to Mapbox attribution link. #6729

Merged
merged 1 commit into from
May 24, 2018
Merged

Add rel="noopener" to Mapbox attribution link. #6729

merged 1 commit into from
May 24, 2018

Conversation

gorbypark
Copy link

@gorbypark gorbypark commented May 24, 2018

Launch Checklist

  • briefly describe the changes in this PR
    Added a rel="noopener" attribute to the Mapbox attribution link. This is a Google Lighthouse Report "best practice", see here for details. In short, it makes target="_blank" links open in their own process, instead of sharing a process with the parent window.
  • testing
    yarn test passes and Lighthouse Labs doesn't complain about the target="_blank" link not having the rel attribute set anymore.

@gorbypark gorbypark changed the title Added rel="noopener" to Mapbox attribution link. Add rel="noopener" to Mapbox attribution link. May 24, 2018
Copy link
Contributor

@jfirebaugh jfirebaugh left a comment

Choose a reason for hiding this comment

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

Thanks!

@jfirebaugh jfirebaugh merged commit d8d6413 into mapbox:master May 24, 2018
@gorbypark gorbypark deleted the Mapbox-attribution-link-rel="noopener"-attribute branch May 24, 2018 18:19
@doylemark
Copy link

Did this get removed?

@ryanhamley
Copy link
Contributor

ryanhamley commented Apr 24, 2020

@doyle-mark No, but it was expanded by #8106 to include nofollow

anchor.setAttribute("rel", "noopener nofollow");

If you're seeing a problem, you can open a new issue with a description and a minimal reproduction of the bug.

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.

4 participants