From 5a3d55db671359613a5d68d98eb7166ca6db4188 Mon Sep 17 00:00:00 2001 From: Sean Hatfield Date: Thu, 19 Sep 2024 13:36:07 -0700 Subject: [PATCH] Fix custom domain in confluence (#2328) confluence custom domain fix --- collector/utils/extensions/Confluence/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/collector/utils/extensions/Confluence/index.js b/collector/utils/extensions/Confluence/index.js index 4436fc88a5..aada1322cc 100644 --- a/collector/utils/extensions/Confluence/index.js +++ b/collector/utils/extensions/Confluence/index.js @@ -207,9 +207,8 @@ async function fetchConfluencePage({ */ function generateAPIBaseUrl(matchResult = {}, isCustomDomain = false) { const { subdomain } = matchResult; - let subpath = isCustomDomain ? `` : `/wiki`; - if (isCustomDomain) return `https://${customDomain}${subpath}`; - return `https://${subdomain}.atlassian.net${subpath}`; + if (isCustomDomain) return `https://${subdomain}`; + return `https://${subdomain}.atlassian.net/wiki`; } /**