yari
yari copied to clipboard
feat: add `noreferrer` and `target=_blank` to external link for built contents
Summary
As is a title.
Problem
An external link in contents that are built by build/index.js
hasn't noreferrer
and target=_blank
.
Solution
Add noreferrer
and target=_blank
to external link built by build/index.js
.
Screenshots
Before
After
How did you test this change?
- Change the source core.
- Run locally
- Check manually
Thank you :)
This pull request has merge conflicts that must be resolved before it can be merged.
May I rebase this?
This pull request has merge conflicts that must be resolved before it can be merged.
Thank you for your PR and sorry for the long wait! 🙏
In the mean-time, we have landed target="_blank"
in https://github.com/mdn/yari/pull/7640.
We have omitted noreferrer
intentionally, so that our partners (and other sites) can identify traffic coming from MDN.