File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments