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

[code-infra] Don't require noreferrer on target link #40447

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Jan 6, 2024

noreferrer is only required for IE 11 and lower, which we don't support anymore, so the eslint config needs to change.

Then, the question is when do we want to use noreferrer? By default it lets the site we link know that we link them, it sounds like a positive thing overall.

For sponsor links, we definitely don't want to have noreferrer.

I think we must keep noreferrer on the templates / examples, as we don't want developers using the default config of eslint to have a warning when they copy & paste our content. We can wait for eslint to change their default, I reported the problem at jsx-eslint/eslint-plugin-react#3672.

@oliviertassinari oliviertassinari added the scope: code-infra Specific to the core-infra product label Jan 6, 2024
@@ -79,7 +79,7 @@ export default function DiamondSponsors() {
data-ga-event-action="docs-premium"
data-ga-event-label="octopus.com"
href="https://octopus.com/?utm_source=materialui&utm_medium=referral"
rel="noopener noreferrer sponsored"
Copy link
Member Author

@oliviertassinari oliviertassinari Jan 6, 2024

Choose a reason for hiding this comment

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

On a sponsor link, it cripples their analytics 🙈

@mui-bot
Copy link

mui-bot commented Jan 6, 2024

Netlify deploy preview

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against f44f1e8

@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label Jan 6, 2024
@oliviertassinari oliviertassinari merged commit 97c3b46 into mui:master Jan 7, 2024
24 checks passed
@oliviertassinari oliviertassinari deleted the target-ie11 branch January 7, 2024 19:33
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Jan 9, 2024
oliviertassinari added a commit to mui/mui-x that referenced this pull request Mar 10, 2024
oliviertassinari added a commit that referenced this pull request Mar 10, 2024
I missed those from #40447.
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants