mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #10440] [CLOSED] feat: enable relative path #38167
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/10440
Author: @juhapekka
Created: 2/20/2025
Status: ❌ Closed
Base:
dev← Head:localdev📝 Commits (1)
e7e0c77frontend: enable relative path📊 Changes
55 files changed (+146 additions, -124 deletions)
View changed files
📝
src/app.html(+9 -9)📝
src/lib/components/NotificationToast.svelte(+1 -1)📝
src/lib/components/admin/Functions.svelte(+1 -1)📝
src/lib/components/admin/Functions/FunctionEditor.svelte(+2 -1)📝
src/lib/components/admin/Settings/Models.svelte(+1 -1)📝
src/lib/components/admin/Users.svelte(+1 -1)📝
src/lib/components/admin/Users/Groups.svelte(+1 -1)📝
src/lib/components/app/AppSidebar.svelte(+2 -2)📝
src/lib/components/channel/Channel.svelte(+1 -1)📝
src/lib/components/channel/Thread.svelte(+1 -1)📝
src/lib/components/chat/Chat.svelte(+5 -5)📝
src/lib/components/chat/MessageInput/CallOverlay.svelte(+6 -6)📝
src/lib/components/chat/MessageInput/Commands/Models.svelte(+1 -1)📝
src/lib/components/chat/ModelSelector/Selector.svelte(+3 -2)📝
src/lib/components/chat/Settings/Chats.svelte(+2 -2)📝
src/lib/components/chat/SettingsModal.svelte(+2 -1)📝
src/lib/components/common/Banner.svelte(+3 -2)📝
src/lib/components/layout/Overlay/AccountPending.svelte(+3 -2)📝
src/lib/components/layout/Sidebar.svelte(+3 -3)📝
src/lib/components/layout/Sidebar/ArchivedChatsModal.svelte(+2 -1)...and 35 more files
📄 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
This pull request relate to discussion happening here https://github.com/open-webui/open-webui/discussions/3431
What is added here is on frontend side possibility to have path on server url from where open-webui is served. Ie. https://<server> can with these changes be augmented with https://<server><open webui serving path>
where that base <open webui serving path> path is coming from svelte.config.js:
Changed
Here basically all urls on frontend side are augmented with the additional path, and for static served files starting slash is removed, e.g. "/static/something" -> "static/something"
Additional Information
I tried to test this thoroughly, I expect I don't break anything for current state (unless that change on static paths does something on some situations, those can be augmented with same base path if seen needed). I ran this on localhost with no base path and everything did work as before. Then I ran this through apache with adding base path and everything did work equally on my setup. My test setup with apache is with two machines. Machine A is where apache is forwarding http and ws traffic coming to http://<my server><open webui serving pach> into port, this port is forwarded to machine B. On machine B I have Open WebUI running and answering to that forwarded port.
On both cases (localhost/through apache) on browser console everything seems good, there are no errors reported on my tests.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.