diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index 0ea10ebf5..00434a9a9 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -611,12 +611,12 @@ async def process_chat_response(request, response, user, events, metadata, tasks if webhook_url: post_webhook( webhook_url, - f"{title} - {WEBUI_URL}/{metadata['chat_id']}\n\n{content}", + f"{title} - {WEBUI_URL}/c/{metadata['chat_id']}\n\n{content}", { "action": "chat", "message": content, "title": title, - "url": f"{WEBUI_URL}/{metadata['chat_id']}", + "url": f"{WEBUI_URL}/c/{metadata['chat_id']}", }, )