diff --git a/collector/utils/extensions/Confluence/index.js b/collector/utils/extensions/Confluence/index.js index da918b2d..ff91773c 100644 --- a/collector/utils/extensions/Confluence/index.js +++ b/collector/utils/extensions/Confluence/index.js @@ -24,7 +24,14 @@ function validSpaceUrl(spaceUrl = "") { "https\\://(:subdomain.):domain.:tld/wiki/spaces/(:spaceKey)/*" ); const customMatch = customPattern.match(spaceUrl); - if (customMatch) { + + // Custom "display" Confluence URL match + const customDisplayPattern = new UrlPattern( + "https\\://(:subdomain.):domain.:tld/display/(:spaceKey)/*" + ); + const customDisplayMatch = customDisplayPattern.match(spaceUrl); + + if (customMatch || customDisplayMatch) { customMatch.customDomain = (customMatch.subdomain ? `${customMatch.subdomain}.` : "") + // `${customMatch.domain}.${customMatch.tld}`;