Skip to content

Commit

Permalink
Fix custom domain in confluence (#2328)
Browse files Browse the repository at this point in the history
confluence custom domain fix
  • Loading branch information
shatfield4 authored Sep 19, 2024
1 parent 84c1f6e commit 5a3d55d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions collector/utils/extensions/Confluence/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}

/**
Expand Down

0 comments on commit 5a3d55d

Please sign in to comment.