fix: add missing /wiki to Confluence cloud citation URLs (#5167)

fix: add /wiki to Confluence cloud page URLs in citations
This commit is contained in:
Maxwell Calkin 2026-03-09 13:24:56 -04:00 committed by GitHub
parent 113df6d013
commit 563f95167d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,7 +131,7 @@ class ConfluencePagesLoader {
/\n{3,}/g,
"\n\n"
);
const pageUrl = `${this.baseUrl}/spaces/${this.spaceKey}/pages/${page.id}`;
const pageUrl = `${this.baseUrl}${this.cloud ? "/wiki" : ""}/spaces/${this.spaceKey}/pages/${page.id}`;
return {
pageContent: textWithPreservedStructure,