fix: sitemap.xml base url (again) (#10764)

This commit is contained in:
Tom Moor
2025-12-02 21:13:16 -05:00
committed by GitHub
parent f009236144
commit a8048962f6
+3 -1
View File
@@ -402,7 +402,9 @@ router.get(
return;
}
const baseUrl = `${team?.url ?? process.env.URL}/s/${id}`;
const baseUrl = share.domain
? `https://${share.domain}`
: `${share.team.url ?? process.env.URL}/s/${id}`;
ctx.set("Content-Type", "application/xml");
ctx.body = navigationNodeToSitemap(sharedTree, baseUrl);