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 3785b12 commit 07d4360Copy full SHA for 07d4360
js/copy-to-llm.js
@@ -76,10 +76,10 @@
76
}
77
78
function getMarkdownUrl(slug) {
79
- const normalizedSlug = (slug || 'index').toString().replace(/\.md$/i, '');
+ const pageSlug = slug || 'index';
80
const host = window.location ? window.location.host : '';
81
const protocol = window.location ? window.location.protocol : 'https:';
82
- return `${protocol}//${host}/ai/pages/${normalizedSlug}.md`;
+ return `${protocol}//${host}/ai/pages/${pageSlug}.md`;
83
84
85
const NO_MARKDOWN_MESSAGE = 'No Markdown file available.';
0 commit comments