mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-24 03:16:40 +00:00
Use published URL for site when displaying results for a Site space (#2364)
This commit is contained in:
@@ -94,6 +94,8 @@ export async function searchParentContent(
|
||||
siteSpaces.reduce(
|
||||
(acc, siteSpace) => {
|
||||
acc[siteSpace.space.id] = siteSpace.space;
|
||||
// replace the published url for the "space" with the site's published url
|
||||
acc[siteSpace.space.id].urls.published = siteSpace.urls.published;
|
||||
return acc;
|
||||
},
|
||||
{} as Record<string, Space>,
|
||||
|
||||
Reference in New Issue
Block a user