mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #16096] [MERGED] fix: properly handle full URLs in form_data.path #10827
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/16096
Author: @gkkachi
Created: 7/28/2025
Status: ✅ Merged
Merged: 7/31/2025
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
0a8f482fix: properly handle full URLs in form_data.path📊 Changes
2 files changed (+20 additions, -11 deletions)
View changed files
📝
backend/open_webui/routers/configs.py(+6 -2)📝
backend/open_webui/utils/tools.py(+14 -9)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
form_data.pathcontains a full URL (i.e., it includes '://'), the backend now uses this value directly instead of concatenating it withform_data.url. This ensures valid URL usage for both relative and absolute paths.Added
Changed
backend/open_webui/routers/configs.py, updated URL construction logic to check for and use full URLs inform_data.path.Deprecated
Removed
Fixed
form_data.pathwould be incorrectly concatenated withform_data.url, resulting in an invalid URL.Security
Breaking Changes
Additional Information
2c7ccc69feScreenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.