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 b596b88 commit 6a773a3Copy full SHA for 6a773a3
apify-docs-theme/src/theme/LLMButtons/index.jsx
@@ -55,7 +55,11 @@ const DROPDOWN_OPTIONS = [
55
];
56
57
const getPrompt = (currentUrl) => `Read from ${currentUrl} so I can ask questions about it.`;
58
-const getMarkdownUrl = (currentUrl) => `${currentUrl}.md`;
+const getMarkdownUrl = (currentUrl) => {
59
+ const url = new URL(currentUrl);
60
+ url.pathname = `${url.pathname.replace(/\/$/, '')}.md`;
61
+ return url.toString();
62
+};
63
64
const onOpenInChatGPTClick = () => {
65
if (window.analytics) {
0 commit comments