Skip to content

External links should open in a new tab (target=_blank) #92

@a6b8

Description

@a6b8

External links open in a new tab

Context: Follow-up during Memo 069. Markdown/MDX content links to external sites (GitHub, x402.org, conference page) rendered without target/rel and opened in the same tab. Only hardcoded component links (share buttons, footer) had target=_blank.

Change: Added a self-contained rehype plugin in astro.config.mjs (no new dependency) that adds target="_blank" rel="noopener noreferrer" to every <a> whose href is an absolute http(s) URL outside flowmcp.github.io/flowmcp.org. Internal and relative links are untouched.

Affected files:

  • astro.config.mjs

Verification: Blog (.md) + ecosystem/x402 (.mdx): all external links target=_blank, internal links unchanged; astro build exit 0; built HTML confirmed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions