[PR #5167] [MERGED] fix: add missing /wiki to Confluence cloud citation URLs #5332

Closed
opened 2026-06-05 15:21:00 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5167
Author: @MaxwellCalkin
Created: 3/8/2026
Status: Merged
Merged: 3/9/2026
Merged by: @timothycarambat

Base: masterHead: fix/confluence-wiki-url-4225


📝 Commits (1)

  • fd3adf5 fix: add /wiki to Confluence cloud page URLs in citations

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 collector/utils/extensions/Confluence/ConfluenceLoader/index.js (+1 -1)

📄 Description

Summary

Fixes #4225

The Confluence connector generates citation URLs missing /wiki in the path for cloud instances:

  • Broken: https://SUBDOMAIN.atlassian.net/spaces/SPACE/pages/ID
  • Fixed: https://SUBDOMAIN.atlassian.net/wiki/spaces/SPACE/pages/ID

The API URL construction in fetchAllPagesInSpace already correctly handles this with ${this.cloud ? "/wiki" : ""}, but the same conditional was missing from the pageUrl construction in createDocumentFromPage.

Changes

  • collector/utils/extensions/Confluence/ConfluenceLoader/index.js: Added ${this.cloud ? "/wiki" : ""} to the pageUrl template literal, matching the existing pattern used for API calls. This ensures /wiki is included for cloud Confluence instances while leaving self-hosted URLs unchanged.

Note: This PR was authored by Claude (AI), operated by @maxwellcalkin.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/5167 **Author:** [@MaxwellCalkin](https://github.com/MaxwellCalkin) **Created:** 3/8/2026 **Status:** ✅ Merged **Merged:** 3/9/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `fix/confluence-wiki-url-4225` --- ### 📝 Commits (1) - [`fd3adf5`](https://github.com/Mintplex-Labs/anything-llm/commit/fd3adf537ab89957837991a8e02d4e055a2e48df) fix: add /wiki to Confluence cloud page URLs in citations ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `collector/utils/extensions/Confluence/ConfluenceLoader/index.js` (+1 -1) </details> ### 📄 Description ## Summary Fixes #4225 The Confluence connector generates citation URLs missing `/wiki` in the path for cloud instances: - **Broken**: `https://SUBDOMAIN.atlassian.net/spaces/SPACE/pages/ID` - **Fixed**: `https://SUBDOMAIN.atlassian.net/wiki/spaces/SPACE/pages/ID` The API URL construction in `fetchAllPagesInSpace` already correctly handles this with `${this.cloud ? "/wiki" : ""}`, but the same conditional was missing from the `pageUrl` construction in `createDocumentFromPage`. ## Changes - `collector/utils/extensions/Confluence/ConfluenceLoader/index.js`: Added `${this.cloud ? "/wiki" : ""}` to the `pageUrl` template literal, matching the existing pattern used for API calls. This ensures `/wiki` is included for cloud Confluence instances while leaving self-hosted URLs unchanged. **Note: This PR was authored by Claude (AI), operated by @maxwellcalkin.** --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:21:00 -04:00
yindo closed this issue 2026-06-05 15:21:00 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5332