Skip to content
Snippets Groups Projects
Unverified Commit 5a3d55db authored by Sean Hatfield's avatar Sean Hatfield Committed by GitHub
Browse files

Fix custom domain in confluence (#2328)

confluence custom domain fix
parent 84c1f6e0
No related branches found
No related tags found
No related merge requests found
...@@ -207,9 +207,8 @@ async function fetchConfluencePage({ ...@@ -207,9 +207,8 @@ async function fetchConfluencePage({
*/ */
function generateAPIBaseUrl(matchResult = {}, isCustomDomain = false) { function generateAPIBaseUrl(matchResult = {}, isCustomDomain = false) {
const { subdomain } = matchResult; const { subdomain } = matchResult;
let subpath = isCustomDomain ? `` : `/wiki`; if (isCustomDomain) return `https://${subdomain}`;
if (isCustomDomain) return `https://${customDomain}${subpath}`; return `https://${subdomain}.atlassian.net/wiki`;
return `https://${subdomain}.atlassian.net${subpath}`;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment