From 39406bbf5451b6bcb7ae004eaa8e7849a681ad69 Mon Sep 17 00:00:00 2001 From: Scott Cazan Date: Tue, 2 Jul 2024 16:14:39 +0200 Subject: [PATCH] Use published URL for site when displaying results for a Site space (#2364) --- src/components/Search/server-actions.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Search/server-actions.tsx b/src/components/Search/server-actions.tsx index 766ea98f9..851323fda 100644 --- a/src/components/Search/server-actions.tsx +++ b/src/components/Search/server-actions.tsx @@ -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,