We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 08771d6 + dbf6677 commit bbd5b5aCopy full SHA for bbd5b5a
1 file changed
src/components/CopyPageButton/index.jsx
@@ -89,7 +89,8 @@ export default function CopyPageButton({ mdUrl, pageTitle }) {
89
90
const openInLLM = (baseUrl) => {
91
setOpen(false);
92
- const prompt = buildPrompt(toAbsolute(mdUrl), pageTitle);
+ const pageUrl = window.location.origin + window.location.pathname;
93
+ const prompt = buildPrompt(pageUrl, pageTitle);
94
window.open(baseUrl + encodeURIComponent(prompt), '_blank', 'noopener,noreferrer');
95
};
96
0 commit comments