mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #24135] issue: When using the HTTP protocol, the share link cannot be copied. #58870
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?
Originally created by @sleepyddl on GitHub (Apr 25, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24135
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.9.2
Ollama Version (if applicable)
No response
Operating System
wsl
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
copy shared url successfullly
Actual Behavior
When accessing via http://IP, click Share. After the pop-up window appears, click the Copy Link button. The system prompts successfull, but the link is not actually copied.
Steps to Reproduce
When accessing via http://IP, click Share. After the pop-up window appears, click the Copy Link button. The system prompts successfull, but the link is not actually copied.
Logs & Screenshots
No error message is displayed; the function is simply unavailable.
Additional Information
No response
@sleepyddl commented on GitHub (Apr 25, 2026):
I believe the root cause lies in an issue with the copy functionality. After debugging, I found that the share link is generated correctly, but something goes wrong when calling
copyToClipboard.This issue only occurs under HTTP (non-localhost environments). Since the system cannot access
navigator.clipboardover HTTP, it falls back to simulating the copy operation by creating a DOM element. The relevant code is as follows:textArea.style.position = 'fixed'; document.body.appendChild(textArea); textArea.focus({ preventScroll: true }); textArea.select();Theoretically, this process should work without issues. Unfortunately, textArea.focus() does not execute as expected (I suspect the animation effect is causing the focus to be lost, but I haven’t figured out how to verify this). As a result, the text fails to be copied from the textarea.
I tested the session copy feature, which runs the exact same code and works perfectly. I noticed that the MENU does not disappear when copying the session, whereas clicking the
"Copy Link"button triggers the MENU to hide. I think the MENU’s hide animation is causing the textarea to lose focus.Is there any frontend expert who can explain this?
I’ve switched from using textarea.focus to the Selection Range method, which resolves the issue properly. And PR in here #24130
@YashvirGaming commented on GitHub (Apr 25, 2026):
@sleepyddl dude where's the EXE windows webui ?
i dont see it in Releases , latest tags v0.9.2 there are no exe for windows wtf.
@YashvirGaming commented on GitHub (Apr 25, 2026):
@sleepyddl @yarikoptic @daw @jfahrenkrug
found it thanks https://github.com/open-webui/desktop/releases
@YashvirGaming commented on GitHub (Apr 25, 2026):
@sleepyddl
How tf do i choose my GPU here
@YashvirGaming commented on GitHub (Apr 25, 2026):
@sleepyddl
@jfahrenkrug @daw @yarikoptic
Yeah works perfectly for my RTX4080 VRAM 16gb and it took only 19 seconds
The code quick script worked too