Skip to content

Fix Open with AI button to include current URL in prompt#189

Merged
brittonhayes merged 1 commit intomainfrom
fix/open-with-ai-include-url
Mar 21, 2026
Merged

Fix Open with AI button to include current URL in prompt#189
brittonhayes merged 1 commit intomainfrom
fix/open-with-ai-include-url

Conversation

@brittonhayes
Copy link
Member

Summary

  • The "Open in Claude/ChatGPT/Perplexity" buttons now embed the current page URL directly in the AI prompt, so the agent can fetch the page content itself
  • For doc pages with .md files, the prompt includes both the .md URL and the page URL
  • For API pages, the prompt includes the page URL and a reference to llms.txt for site-wide context
  • Markdown is always copied to clipboard as a convenience fallback

Test plan

  • Click "Open in Claude" on a docs page (e.g. /docs/introduction) — verify the prompt contains both the .md URL and the page URL
  • Click "Open in Claude" on an API page (e.g. /docs/api/...) — verify the prompt contains the page URL and llms.txt reference
  • Verify "Open in ChatGPT" and "Open in Perplexity" also include the URL
  • Verify "Copy page" still works as before

🤖 Generated with Claude Code

The AI prompt now embeds the current page URL so the agent can fetch
the page content directly (either the .md file for doc pages or the
page itself for API pages). Also references llms.txt for API pages
so agents have a site overview fallback. Markdown is always copied
to clipboard as a convenience backup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@brittonhayes brittonhayes merged commit 1039817 into main Mar 21, 2026
1 check passed
@brittonhayes brittonhayes deleted the fix/open-with-ai-include-url branch March 21, 2026 06:21
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