mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: sitemap.xml base url (again) (#10764)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user