mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[GH-ISSUE #24096] issue: Share Links do not work since 0.9 #35713
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 @seamon67 on GitHub (Apr 24, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24096
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.9.2
Ollama Version (if applicable)
No response
Operating System
Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When you click a chat share link for eg. https://<URL>/s/<share id>, it should lead to the shared Chat.
Actual Behavior
Clicking on a shared chat link takes you to the homepage of OpenWebUI.
Steps to Reproduce
Logs & Screenshots
Nothing wrong in the logs.
Additional Information
No response
@TomTheWise commented on GitHub (Apr 24, 2026):
can confirm and reproduce in current dev
@sleepyddl commented on GitHub (Apr 25, 2026):
I also found the same issue in the dev environment
@sleepyddl commented on GitHub (Apr 25, 2026):
If you run under http://localhost:5173, this issue will not occur, but if you run under http://ip:5173, this issue can be reproduced
@seamon67 commented on GitHub (Apr 25, 2026):
I am using a reverse proxy
@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.clipboard over 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. I will submit a PR shortly.
@seamon67 commented on GitHub (Apr 25, 2026):
I can't access old share links created before the update
@seamon67 commented on GitHub (Apr 25, 2026):
@sleepyddl Does this fix previously shared links as well - ones created before 0.9?
@sleepyddl commented on GitHub (Apr 25, 2026):
Sorry, I didn't read your problem description carefully.This fix can't resolve the link reading issue. It fixes the link creation issue instead.