[GH-ISSUE #3344] [BUG]: Submitted URLs for documents truncate after special characters #2153

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

Originally created by @reekob on GitHub (Feb 25, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3344

Originally assigned to: @shatfield4 on GitHub.

How are you running AnythingLLM?

Docker (local)

What happened?

When submitting a URL for document processing, AnythingLLM does not retain the full URL. Any portion of the URL beyond special characters (such as ?, &, or =) is omitted when stored. This issue leads to incorrect or incomplete document retrieval.

Actual Behavior:
Only the portion of the URL before the first special character is retained, leading to an incomplete filename.

Screenshots:

Before submission: (Attached - showing full URL input)
Image

After submission: (Attached - showing truncated filename)

Image

Additional Context:
This issue affects users attempting to fetch and store documents from URLs with query parameters, potentially leading to data loss or incorrect processing.

Are there known steps to reproduce?

Steps to Reproduce:

Expected Behavior:
The full URL, including query parameters, should be preserved when storing the document name or handling retrieval.

Originally created by @reekob on GitHub (Feb 25, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3344 Originally assigned to: @shatfield4 on GitHub. ### How are you running AnythingLLM? Docker (local) ### What happened? When submitting a URL for document processing, AnythingLLM does not retain the full URL. Any portion of the URL beyond special characters (such as ?, &, or =) is omitted when stored. This issue leads to incorrect or incomplete document retrieval. Actual Behavior: Only the portion of the URL before the first special character is retained, leading to an incomplete filename. Screenshots: Before submission: (Attached - showing full URL input) <img width="1332" alt="Image" src="https://github.com/user-attachments/assets/49e8a016-b16a-47f8-8cbc-624878d51196" /> After submission: (Attached - showing truncated filename) <img width="1331" alt="Image" src="https://github.com/user-attachments/assets/8f4dc2e7-57b8-40b6-bf53-d15aea914284" /> Additional Context: This issue affects users attempting to fetch and store documents from URLs with query parameters, potentially leading to data loss or incorrect processing. ### Are there known steps to reproduce? Steps to Reproduce: - Navigate to the document submission interface. - Submit a URL that includes query parameters (e.g., https://example.com/apple-iphone-repair/#iphone-12-repairs). - Observe that the stored filename truncates after the first special character (#). Expected Behavior: The full URL, including query parameters, should be preserved when storing the document name or handling retrieval.
yindo added the possible buginvestigating labels 2026-02-22 18:28:22 -05:00
yindo closed this issue 2026-02-22 18:28:22 -05:00
Author
Owner

@shatfield4 commented on GitHub (Feb 25, 2025):

The UI makes it appear that this is the case and that the query params are not being stored properly but we do this so that the UI isn't cluttered with that information. In our backend we do store the full link.

You can test this by fetching a website with it and asking the LLM a question about that website. When you see the citation and click the link it does store the entire link including the query params and when fetching the website we fetch it with that full URL that is stored in our metadata.

@shatfield4 commented on GitHub (Feb 25, 2025): The UI makes it appear that this is the case and that the query params are not being stored properly but we do this so that the UI isn't cluttered with that information. In our backend we do store the full link. You can test this by fetching a website with it and asking the LLM a question about that website. When you see the citation and click the link it does store the entire link including the query params and when fetching the website we fetch it with that full URL that is stored in our metadata.
yindo changed title from [BUG]: Submitted URLs for documents truncate after special characters to [GH-ISSUE #3344] [BUG]: Submitted URLs for documents truncate after special characters 2026-06-05 14:44:52 -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#2153