mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #24096] issue: Share Links do not work since 0.9 #58851
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.
@sleepyddl commented on GitHub (Apr 25, 2026):
I just rolled back the version to 0.8.12, obtained the share link, then upgraded to 0.9.2. The issue can indeed be reproduced.
@sleepyddl commented on GitHub (Apr 25, 2026):
After investigation, I've identified the root cause. I checked the historical code commits and found this is most likely a coding oversight.The method
get_chat_by_share_idwas mistakenly written asget_chat_by_id. I will submit a PR shortly.@jimbo-p commented on GitHub (Apr 27, 2026):
Thanks for getting a PR out, same issue here. If it helps, share links are working for our non-admin users, they seem to only be broken for when an admin opens up a /s link.
edit: old share links are working, new links are failing.
@Baronco commented on GitHub (Apr 29, 2026):
I’m using the latest version (0.9.2).
When a non-admin user tries to share a chat as public, it always remains private.
Only an admin user can publicly share a chat, but they cannot view the shared chat. Non-admin users, however, can view it :doomed:
The behavior is the same through the API, using the endpoints:
/api/v1/chats/{chat_id}/share/api/v1/chats/shared/{chat_id}/access/updateIf an admin user shares a chat using these endpoints, they cannot view the shared chat. Non-admin users, however, can view it.
If a non-admin user shares a chat using these endpoints, the chat remains private.
The request body sent to
/api/v1/chats/shared/{chat_id}/access/updateis:I have noticed another inconsistency: in the scenario of a non-admin user with chat ID
ef4d80f7-15cd-4faa-9e5f-4d76079c6c8c, if the user shares the chat using the corresponding option in the OWUI interface (without making it public), the administrator user will not be able to view the chat using the link generated by OWUI:However, if the shared chat’s corresponding
share_idGUID is removed and replaced with the chat IDef4d80f7-15cd-4faa-9e5f-4d76079c6c8c, resulting in the following URL:In this situation, the administrator user is able to view the chat.
It seems that, from the API perspective, the chat ID is being treated as if it were the share_id, while the actual share_id does not works
@sleepyddl commented on GitHub (May 1, 2026):
@jimbo-p Sorry, I didn't understand what you meant. Is this phenomenon 'old share links are working, new links are failing.' caused by the PR I submitted?
@jimbo-p commented on GitHub (May 1, 2026):
No, I had just noticed that a share link generated pre-0.9 still opened up. Anything generated after 0.9 was failing. Have not yet tested your PR.
@tjbck commented on GitHub (May 4, 2026):
Should be addressed in dev, testing wanted here!
@Classic298 commented on GitHub (May 4, 2026):
should be fixed by
cde21b9f6dtesting wanted