Skip to content

Commit d4a653d

Browse files
authored
Use SpaceURL in getURL function to for cross-space searches (#2399)
1 parent 7e74d25 commit d4a653d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ function transformSectionsAndPage(args: {
266266
type: 'page',
267267
id: item.id,
268268
title: item.title,
269-
href: getURL(item.path),
269+
href: getURL(item.path, spaceURL),
270270
spaceTitle: space?.title,
271271
};
272272

0 commit comments

Comments
 (0)