Skip to content

feat(gatsby): open external links in a new tab with noopener#154

Open
noritaka1166 wants to merge 2 commits into
adaltas:masterfrom
noritaka1166:external-link
Open

feat(gatsby): open external links in a new tab with noopener#154
noritaka1166 wants to merge 2 commits into
adaltas:masterfrom
noritaka1166:external-link

Conversation

@noritaka1166

@noritaka1166 noritaka1166 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor
  • Open external links in a new browser tab
  • Add rel="noopener" to external links for safer _blank navigation
  • Keep internal links, hash links, and links to csv.js.org opening in the same tab

@wdavidw

wdavidw commented Jun 10, 2026

Copy link
Copy Markdown
Member

Thank you @noritaka1166. While I agree for noopener, I believe that noreferrer is harmless and provide usefull information for site statistics.

@noritaka1166 noritaka1166 changed the title feat(gatsby): add functionality to open external links in a new tab with noopener and noreferrer feat(gatsby): open external links in a new tab with noopener Jun 10, 2026
@noritaka1166

Copy link
Copy Markdown
Contributor Author

Thank you @noritaka1166. While I agree for noopener, I believe that noreferrer is harmless and provide usefull information for site statistics.

@wdavidw
Thanks for the feedback. That makes sense, I removed noreferrer and kept only noopener so referrer information is preserved for analytics while still preventing access to window.opener.

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.

2 participants