Skip to content

Commit df7de8f

Browse files
authored
Fix an issue where links were not rendering properly in Ask AI answers (#3505)
1 parent 72f5ce3 commit df7de8f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/khaki-waves-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Fix an issue where links were not rendering properly in Ask AI answers

packages/gitbook/src/components/Search/server-actions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ async function transformAnswer(
338338
document={answer.answer.document}
339339
context={{
340340
mode: 'default',
341-
contentContext: undefined,
341+
contentContext: context,
342342
wrapBlocksInSuspense: false,
343343
shouldRenderLinkPreviews: false, // We don't want to render link previews in the AI answer.
344344
}}

0 commit comments

Comments
 (0)