Use published URL for site when displaying results for a Site space (#2364)

This commit is contained in:
Scott Cazan
2024-07-02 16:14:39 +02:00
committed by GitHub
parent 9c5c1e5b68
commit 39406bbf54
+2
View File
@@ -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>,