mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #23242] [CLOSED] WIP: feat: add subpath support #42730
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/23242
Author: @jearlyno10
Created: 3/30/2026
Status: ❌ Closed
Base:
dev← Head:jearly/subpath📝 Commits (1)
622692fInit base path📊 Changes
98 files changed (+341 additions, -210 deletions)
View changed files
📝
.env.example(+6 -1)📝
Dockerfile(+2 -0)📝
backend/open_webui/__init__.py(+5 -1)📝
backend/open_webui/env.py(+9 -0)📝
backend/open_webui/main.py(+11 -8)📝
src/app.html(+12 -10)📝
src/lib/components/admin/Analytics.svelte(+2 -1)📝
src/lib/components/admin/Analytics/Dashboard.svelte(+3 -2)📝
src/lib/components/admin/Analytics/ModelUsage.svelte(+2 -1)📝
src/lib/components/admin/Evaluations.svelte(+3 -2)📝
src/lib/components/admin/Evaluations/Leaderboard.svelte(+2 -1)📝
src/lib/components/admin/Functions.svelte(+5 -4)📝
src/lib/components/admin/Functions/FunctionEditor.svelte(+2 -1)📝
src/lib/components/admin/Settings/Models.svelte(+3 -2)📝
src/lib/components/admin/Users.svelte(+4 -3)📝
src/lib/components/admin/Users/Groups.svelte(+2 -1)📝
src/lib/components/admin/Users/UserList.svelte(+2 -1)📝
src/lib/components/admin/Users/UserList/EditUserModal.svelte(+2 -1)📝
src/lib/components/channel/Channel.svelte(+2 -1)📝
src/lib/components/channel/MessageInput/MentionList.svelte(+3 -2)...and 78 more files
📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.Tested via Docker for deployment requiring sub path.
Human review AND manual testing
Defaults chosen to not have any impact
devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Single commit
WIP while getting community and maintainer input, and while docs PR is being put together.
Changelog Entry
Description
Adds a shared env var (WEBUI_SUBPATH) for frontend and backend that allows hosting under a subpath, e.g. localhost:8080/openwebui. Non-breaking: when WEBUI_SUBPATH is unset (default), behaviour is identical to the current release. Requires a custom Docker build, e.g.
docker build --build-arg WEBUI_SUBPATH=/chat -t open-webui-fork:local .Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
I appreciate this touches a lot of files; not sure if I found all the required path changes, so suggest getting community support for review and testing.
Will put together docs once maintainers confirm they are happy with the direction of the PR.
Requires custom build of docker container
Discussion:
Issues:
Previous PR attempts:
Screenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.