Skip to content

fix(profiles): send a builder's links to a new tab - #38

Merged
michaeljolley merged 1 commit into
mainfrom
dev/mjolley/profile-links-new-tab
Aug 7, 2026
Merged

fix(profiles): send a builder's links to a new tab#38
michaeljolley merged 1 commit into
mainfrom
dev/mjolley/profile-links-new-tab

Conversation

@michaeljolley

Copy link
Copy Markdown
Collaborator

What

Links on a builder's profile now open in a new tab.

Why

A profile is a page of somebody else's urls. Following one replaced the profile in the same tab, so reading a builder's links meant leaving the builder behind and hitting back to get them again. That is the wrong default for a page whose whole job is pointing you somewhere else.

How

Added target="_blank" to the two outbound anchors on src/pages/builders/[handle].astro: the GitHub button and the user supplied links list. Both already carried noopener, so nothing they open can reach back through window.opener, and the user supplied ones keep their nofollow ugc.

Internal links, like the dev disaster rows further down the page, stay in the current tab.

Tests

New tests/profile.links.test.mjs asserts both outbound anchors open in a new browsing context and keep noopener, and that the user supplied ones stay untrusted. Confirmed it fails against the old markup before it passed against the new.

  • npm test - 390 pass, 0 fail
  • astro check - 0 errors, 0 warnings, 0 hints
  • astro build - complete

A profile is a page of somebody else's urls. Following one replaced the
profile in the same tab, so reading a builder's links meant leaving the
builder behind and hitting back to get them again.

The GitHub button and the user supplied links now open in a new browsing
context. They already carried noopener, so nothing they open can reach
back through window.opener.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6d65e362-569a-4bf7-8d7e-8201b74b14cb
@michaeljolley
michaeljolley merged commit adaea3b into main Aug 7, 2026
9 checks passed
@michaeljolley
michaeljolley deleted the dev/mjolley/profile-links-new-tab branch August 7, 2026 21:04
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