Fix custom domain in confluence ()

confluence custom domain fix
This commit is contained in:
Sean Hatfield 2024-09-19 13:36:07 -07:00 committed by GitHub
parent 84c1f6e0ea
commit 5a3d55db67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`;
}
/**