Plugin: add rel=noopener on all external links
See original GitHub issueeleventy-plugin-rss
already transforms all urls to absolute urls for the RSS feed. Reuse a bunch of that, probably. https://github.com/11ty/eleventy-plugin-rss/blob/master/src/htmlToAbsoluteUrls.js
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Add rel=”noopener” to external links - WordPress.org
I'm not sure all users would like to always have noopener but we can definitely add an on/off option for it Added to...
Read more >A way to add `rel="noopener"` or `rel="noreferrer"` to any ...
Is there a way to add rel="noopener" or rel="noreferrer" to any external links? The only option is nofollow. September 30, ...
Read more >[Joomla] How to add rel="noopener noreferrer" to all external ...
This tutorial guides you about how to add rel="noopener-noreferrer" for all external links Joomla (Joomla 3 and Joomla 4) web.dev Google.
Read more >Web Security: add rel=noopener to external links - gHacks
Don't touch my tabs! (rel=noopener) is a Firefox add-on that adds rel="noopener" to external links on sites open in Firefox automatically.
Read more >how to add rel="noopener" or rel="noreferrer" to all external ...
There are external links pointing to plugins etc and there are 000s of external links to update manually. Does anyone know how to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey all! If people are still looking for a solution to this, I’ve just published https://www.npmjs.com/package/eleventy-plugin-safe-external-links that’ll allow you to add
noopener
and/ornoreferrer
to any link matching a given RegExp pattern, so you can define your own external links (by default, assumes links starting withhttp(s)://
@binyamin if you do it during the build, it is done once for all your users, and they don’t have this additional JS to run, it might enhance performance at least on low end mobile devices.