mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[PR #7828] [MERGED] fix: use WEBUI_API_BASE_URL for file download links in Citations #22115
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/7828
Author: @juananpe
Created: 12/13/2024
Status: ✅ Merged
Merged: 12/16/2024
Merged by: @tjbck
Base:
dev← Head:fixdownloadcitations📝 Commits (1)
6f3ab59fix: use WEBUI_API_BASE_URL for file download links in Citations📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Messages/CitationsModal.svelte(+2 -1)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
When clicking on file links in the Citations component, the requests were being sent to the frontend server port (default: 5173) instead of the backend API port (default: 8080), resulting in 404 errors (in dev mode).
This PR fixes the issue by using the
WEBUI_API_BASE_URLconstant for constructing the file download URLs in the Citations component.Changes
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.