Fix rendering of images in reusable content from an external space (#3960)

This commit is contained in:
Samy Pessé
2026-01-29 10:42:25 +01:00
committed by GitHub
parent e00d1c5bbd
commit b57561d395
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Fix rendering of images in reusable content from an external space with the new dereferencing in the API.
+4
View File
@@ -137,6 +137,10 @@ export async function resolveContentRef(
}
case 'file': {
if (isContentRefInDifferentSpace(contentRef, context)) {
return resolveContentRefInSpace(contentRef.space, context, contentRef, options);
}
const file = getRevisionFile({ revision, fileId: contentRef.file });
if (file) {
return {