[PR #5415] [MERGED] fix: preserve Confluence context paths #5436

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5415
Author: @officialasishkumar
Created: 4/12/2026
Status: Merged
Merged: 4/13/2026
Merged by: @timothycarambat

Base: masterHead: 4678-confluence-context-path


📝 Commits (2)

  • 968165d fix: preserve confluence context paths
  • 6a6d31f lint and minor changes

📊 Changes

2 files changed (+150 additions, -7 deletions)

View changed files

collector/__tests__/utils/extensions/Confluence/ConfluenceLoader.test.js (+125 -0)
📝 collector/utils/extensions/Confluence/index.js (+25 -7)

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #4678

Description

Preserve configured context paths for self-hosted Confluence base URLs so instances hosted under paths like https://my.domain.com/confluence call the REST API through that path instead of stripping back to the origin.

Cloud deployments continue to normalize to the URL origin before the loader appends Atlassian Cloud /wiki routes, which keeps existing cloud behavior intact.

Visuals (if applicable)

N/A

Additional Information

The saved document source and encrypted resync payload now use the normalized Confluence base URL, so future resyncs keep the same self-hosted context path.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • I have tested my code functionality
  • Docker build succeeds locally

Focused validations run:

  • corepack yarn test collector/__tests__/utils/extensions/Confluence/ConfluenceLoader.test.js --runInBand
  • cd collector && corepack yarn eslint utils/extensions/Confluence/index.js
  • cd collector && corepack yarn prettier --check utils/extensions/Confluence/index.js __tests__/utils/extensions/Confluence/ConfluenceLoader.test.js

🔄 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/5415 **Author:** [@officialasishkumar](https://github.com/officialasishkumar) **Created:** 4/12/2026 **Status:** ✅ Merged **Merged:** 4/13/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `4678-confluence-context-path` --- ### 📝 Commits (2) - [`968165d`](https://github.com/Mintplex-Labs/anything-llm/commit/968165d3394ecb44662df7adee8ab8a4febc424b) fix: preserve confluence context paths - [`6a6d31f`](https://github.com/Mintplex-Labs/anything-llm/commit/6a6d31f0823c0d53754c51d41eb7fd64540649df) lint and minor changes ### 📊 Changes **2 files changed** (+150 additions, -7 deletions) <details> <summary>View changed files</summary> ➕ `collector/__tests__/utils/extensions/Confluence/ConfluenceLoader.test.js` (+125 -0) 📝 `collector/utils/extensions/Confluence/index.js` (+25 -7) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat (New feature) - [x] 🐛 fix (Bug fix) - [ ] ♻️ refactor (Code refactoring without changing behavior) - [ ] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [ ] 📝 docs (Documentation updates) ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #4678 ### Description Preserve configured context paths for self-hosted Confluence base URLs so instances hosted under paths like `https://my.domain.com/confluence` call the REST API through that path instead of stripping back to the origin. Cloud deployments continue to normalize to the URL origin before the loader appends Atlassian Cloud `/wiki` routes, which keeps existing cloud behavior intact. ### Visuals (if applicable) N/A ### Additional Information The saved document source and encrypted resync payload now use the normalized Confluence base URL, so future resyncs keep the same self-hosted context path. ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated (if applicable) - [x] I have tested my code functionality - [ ] Docker build succeeds locally Focused validations run: - `corepack yarn test collector/__tests__/utils/extensions/Confluence/ConfluenceLoader.test.js --runInBand` - `cd collector && corepack yarn eslint utils/extensions/Confluence/index.js` - `cd collector && corepack yarn prettier --check utils/extensions/Confluence/index.js __tests__/utils/extensions/Confluence/ConfluenceLoader.test.js` --- <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:21 -04:00
yindo closed this issue 2026-06-05 15:21:21 -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#5436