Skip to content

Commit fb78564

Browse files
authored
Update open-in-llm.tsx (#71)
1 parent 6ad3aae commit fb78564

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/open-in-llm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ export const OpenInLLM = () => {
6060
// Function to create Claude URL
6161
const getClaudeUrl = () => {
6262
if (!mounted || typeof window === 'undefined') return '#';
63-
const url = isIndexPage ? `${window.location.origin}/api/md/docs/index` : markdownUrl;
63+
const url = isIndexPage ? `${window.location.origin}/docs` : currentUrl;
6464
return `https://claude.ai/new?q=${encodeURIComponent(`Read from ${url} so I can ask questions about it`)}`;
6565
};
6666

6767
// Function to create ChatGPT URL
6868
const getChatGPTUrl = () => {
6969
if (!mounted || typeof window === 'undefined') return '#';
70-
const url = isIndexPage ? `${window.location.origin}/api/md/docs/index` : markdownUrl;
70+
const url = isIndexPage ? `${window.location.origin}/docs` : currentUrl;
7171
return `https://chatgpt.com/?hints=search&q=${encodeURIComponent(`Read from ${url} so I can ask questions about it`)}`;
7272
};
7373

0 commit comments

Comments
 (0)