[GH-ISSUE #3974] [BUG]: Confluence page URL construction inconsistency in data collector #2528

Closed
opened 2026-02-22 18:30:05 -05:00 by yindo · 1 comment
Owner

Originally created by @littletree71 on GitHub (Jun 9, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3974

How are you running AnythingLLM?

Docker (local)

What happened?

Issue: Confluence page URL construction inconsistency

const pageUrl = `${this.baseUrl}/spaces/${this.spaceKey}/pages/${page.id}`;

This is correct (/wiki/spaces/... is required) in cloud.
⚠️ Unsure if this logic is correct for self-hosted Confluence. Self-hosted may or may not need /wiki.

Reference to Line 80)

It may end up like:

const pageUrl = `${this.baseUrl}/${
      this.cloud ? "/wiki" : ""
    }/spaces/${this.spaceKey}/pages/${page.id}`;

Suggestion

  • Align URL construction between line 80 and line 123 for consistency.
  • Optional: extract /wiki prefix handling into a shared method/config.

Are there known steps to reproduce?

No response

Originally created by @littletree71 on GitHub (Jun 9, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3974 ### How are you running AnythingLLM? Docker (local) ### What happened? ## Issue: Confluence page URL construction inconsistency - [Line 123](https://github.com/Mintplex-Labs/anything-llm/blob/4eb951d40ecf209f8d0bf9c9ecb7d7ec76863546/collector/utils/extensions/Confluence/ConfluenceLoader/index.js#L123) ``` js const pageUrl = `${this.baseUrl}/spaces/${this.spaceKey}/pages/${page.id}`; ``` ✅ This is correct (**`/wiki`**/spaces/... is required) in cloud. ⚠️ Unsure if this logic is correct for self-hosted Confluence. Self-hosted may or may not need /wiki. ## Reference to [Line 80](https://github.com/Mintplex-Labs/anything-llm/blob/4eb951d40ecf209f8d0bf9c9ecb7d7ec76863546/collector/utils/extensions/Confluence/ConfluenceLoader/index.js#L80)) It may end up like: ```js const pageUrl = `${this.baseUrl}/${ this.cloud ? "/wiki" : "" }/spaces/${this.spaceKey}/pages/${page.id}`; ``` ## Suggestion - Align URL construction between line 80 and line 123 for consistency. - Optional: extract `/wiki` prefix handling into a shared method/config. ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:30:05 -05:00
yindo closed this issue 2026-02-22 18:30:05 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jun 9, 2025):

Unsure if this logic is correct for self-hosted Confluence. Self-hosted may or may not need /wiki.

So is this an actual bug? Do you have a current URL at this time that is deploying and does not have /wiki in it that is currently causing an issue preventing connection with Confluence? If self-host may or may not need wiki but there is no evidence of that possible flexibility, then there is no action for us to take until proven so.

@timothycarambat commented on GitHub (Jun 9, 2025): > Unsure if this logic is correct for self-hosted Confluence. Self-hosted may or may not need /wiki. So is this an actual bug? Do you have a current URL at this time that is deploying and does _not_ have /wiki in it that is currently causing an issue preventing connection with Confluence? If self-host may or may not need wiki but there is no evidence of that possible flexibility, then there is no action for us to take until proven so.
yindo changed title from [BUG]: Confluence page URL construction inconsistency in data collector to [GH-ISSUE #3974] [BUG]: Confluence page URL construction inconsistency in data collector 2026-06-05 14:47:04 -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#2528