Skip to content

fix: source address in the top banner is a hot link + guard test - #35

Merged
stuinfla merged 1 commit into
mainfrom
fix/source-link-hot
Oct 13, 2026
Merged

stuinfla merged 1 commit into
mainfrom
fix/source-link-hot

Conversation

@stuinfla

Copy link
Copy Markdown
Owner

Every build printed the source repo address as plain text in the top banner. Now an anchor, new tab, noopener. New tests/hot-links.test.mjs audits a built page: external links need target=_blank + rel=noopener, and no URL text may sit outside a link. Proven to fail on the unfixed generator (2 of 3). Full suite: 316 pass, 0 fail, 3 skipped.

…t link

The provenance banner printed 'source github.com/<owner>/<repo>' as plain <code> on every build.
It is now an anchor opening the repo in a new tab (target=_blank rel=noopener).
tests/hot-links.test.mjs builds a real page and fails if any external link lacks target/rel, or if
any URL-looking text sits outside a link. Proven: 2 of 3 fail on the unfixed generator.
@netlify

netlify Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for explainmyrepo canceled.

Name Link
🔨 Latest commit 4555347
🔍 Latest deploy log https://app.netlify.com/projects/explainmyrepo/deploys/6ace9f849a8d41e56022e023

@stuinfla
stuinfla merged commit 14cda3b into main Oct 13, 2026
5 of 8 checks passed
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