Skip to content

Commit 7f3a30f

Browse files
authored
docs: Update internal link handling to return node text when pathname is missing (#2628)
Verify here: https://pr-2628.preview.docs.apify.com/platform/integrations/openclaw.md
1 parent 1ebc7b7 commit 7f3a30f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ module.exports = {
298298
const isUrlInternal = isInternal(parsedUrl, config.absoluteUrl);
299299
const url = isUrlInternal ? `${config.absoluteUrl}${parsedUrl.pathname}.md` : node.url;
300300

301-
if (isUrlInternal && !parsedUrl.pathname) return '';
301+
if (isUrlInternal && !parsedUrl.pathname) return getNodeText(node);
302302

303303
if (node.title) return `[${node.title}](${url})`;
304304
const linkText = getNodeText(node);

0 commit comments

Comments
 (0)