Skip to content

fix(docs): trust internal links on integration pages#725

Open
allenzhou101 wants to merge 1 commit into
mainfrom
allenzhou/docs-integrations-link-safety
Open

fix(docs): trust internal links on integration pages#725
allenzhou101 wants to merge 1 commit into
mainfrom
allenzhou/docs-integrations-link-safety

Conversation

@allenzhou101

Copy link
Copy Markdown
Contributor

Symptom

On an integrations page (e.g. /integrations/twilio, added in #672), clicking a link in the markdown copy — including clearly internal ones like /docs/channels/twilio — pops an "Open external link?" confirmation dialog claiming "You're about to visit an external website."

Cause

The integration detail sections render through Streamdown, whose link-safety modal is enabled by default (linkSafety: {enabled: true} in its context defaults). That harness is built for AI-generated streaming content: with no onLinkCheck configured, it intercepts every anchor click and shows the confirmation — it never distinguishes internal from external, it just labels everything external.

Fix

linkSafety={{ enabled: false }} on the integrations Markdown component. This copy is static, repo-authored text from lib/integrations/data.ts — the same trust level as every other docs page, none of which interpose a dialog. Links now navigate normally (internal paths in-app, external ones as regular anchors).

Deliberately not chosen: keeping the modal for true externals via onLinkCheck — Streamdown opens checked-ok links with window.open(_blank), which would force internal docs links into new tabs. If a per-domain policy is ever wanted for docs, it belongs in a shared anchor component, not this AI-content harness.

One-line diff plus a comment; no changeset (apps/docs is unpublished).

Streamdown's link-safety modal is enabled by default (built for
AI-generated content) and with no onLinkCheck it interposes an 'Open
external link?' dialog on every link in the integrations markdown,
including internal /docs/* paths. This copy is static and
repo-authored, so disable the modal and let links navigate normally.

Signed-off-by: Allen Zhou <[email protected]>
@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
eve-docs Ready Ready Preview, Comment Jul 12, 2026 9:35pm
eve-docs-1644 Ready Ready Preview, Comment, Open in v0 Jul 12, 2026 9:35pm
eve-docs-4759 Ready Ready Preview, Comment, Open in v0 Jul 12, 2026 9:35pm

Request Review

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