Skip to content

Commit 39406bb

Browse files
authored
Use published URL for site when displaying results for a Site space (#2364)
1 parent 9c5c1e5 commit 39406bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Search/server-actions.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export async function searchParentContent(
9494
siteSpaces.reduce(
9595
(acc, siteSpace) => {
9696
acc[siteSpace.space.id] = siteSpace.space;
97+
// replace the published url for the "space" with the site's published url
98+
acc[siteSpace.space.id].urls.published = siteSpace.urls.published;
9799
return acc;
98100
},
99101
{} as Record<string, Space>,

0 commit comments

Comments
 (0)