We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c437ea commit 985594aCopy full SHA for 985594a
src/components/CopyPageButton.tsx
@@ -60,7 +60,8 @@ export default function CopyPageButton() {
60
61
const handleExternalAI = (url: string, vendor: string) => {
62
const externalAIURL = url;
63
- const prompt = `Read this page from the Cloudflare docs: ${encodeURIComponent(window.location.href)} and answer questions about the content.`;
+ const indexMdUrl = new URL("index.md", window.location.href).toString();
64
+ const prompt = `Read this page from the Cloudflare docs: ${encodeURIComponent(indexMdUrl)} and answer questions about the content.`;
65
track("clicked copy page button", {
66
value: "docs ai",
67
label: vendor,
0 commit comments