Skip to content

Add rel=noopener noreferrer to card and issue external links - #772

Open
GuillermoBarreto wants to merge 1 commit into
firstcontributions:mainfrom
GuillermoBarreto:fix/external-links-rel-noopener
Open

GuillermoBarreto wants to merge 1 commit into
firstcontributions:mainfrom
GuillermoBarreto:fix/external-links-rel-noopener

Conversation

@GuillermoBarreto

Copy link
Copy Markdown

What

The target="_blank" anchors in src/components/ProjectCard.astro (the card link wrapper and the "Go to Project" button) and src/components/IssueList.astro (issue links) now include rel="noopener noreferrer".

Why

Opening external pages without rel on target="_blank" links leaves the page open to reverse tabnabbing (the opened page can access window.opener). The Navbar and SocialShare components already use rel="noopener noreferrer" on their external links, so this makes the card and issue links consistent with the rest of the site.

No visual change; link behavior is unchanged apart from the security hardening.

The target=_blank anchors in ProjectCard.astro and IssueList.astro
opened external pages without rel attributes, leaving the site open to
reverse tabnabbing. The nav bar and social share components already use
rel=noopener noreferrer; this makes the card links consistent with
them.

This branch has not been deployed

No deployments
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.

1 participant