Skip to content

Fix new-tab behaviour on examples page GitHub link#1937

Open
summerscope wants to merge 1 commit into
mainfrom
claude/fix-examples-external-link
Open

Fix new-tab behaviour on examples page GitHub link#1937
summerscope wants to merge 1 commit into
mainfrom
claude/fix-examples-external-link

Conversation

@summerscope
Copy link
Copy Markdown
Contributor

Summary

Small follow-up to #1936. The "View on GitHub" link in docs/reference/examples.md uses the {:target="_blank"} attr_list syntax, which (as confirmed by manual testing on the live docs) doesn't actually produce a new-tab link in production — same pipeline issue as the compliance page. Switching it to a raw <a target="_blank" rel="noopener"> tag, which works reliably.

Test plan

  • Once deployed, clicking the "View on GitHub" link on /docs/logfire/reference/examples/ opens in a new tab.

Generated by Claude Code

The {:target="_blank"} attr_list syntax renders correctly in the
mkdocs preview but does not produce target=_blank in production,
matching the issue fixed for compliance.md. Switch to a raw <a>
tag, which works reliably in both pipelines.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9dfa831
Status: ✅  Deploy successful!
Preview URL: https://72eec597.logfire-docs.pages.dev
Branch Preview URL: https://claude-fix-examples-external.logfire-docs.pages.dev

View logs

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

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.

2 participants