From 22812029215a0ecff1ec0e78fb92c5e4a81e03cd Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Wed, 30 Jul 2025 11:15:40 +0800 Subject: [PATCH] fix: The dialogue interface cannot be opened (#3774) --- apps/maxkb/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/maxkb/urls.py b/apps/maxkb/urls.py index cc5884a2b..166ea574a 100644 --- a/apps/maxkb/urls.py +++ b/apps/maxkb/urls.py @@ -111,7 +111,7 @@ def page_not_found(request, exception): return HttpResponseRedirect(a) index_path = os.path.join(PROJECT_DIR, 'apps', "static", 'chat', 'index.html') content = get_index_html(index_path) - content = content.replace("prefix: '/chat'", f"prefix: {CONFIG.get_chat_path()}") + content = content.replace("prefix: '/chat'", f"prefix: '{CONFIG.get_chat_path()}'") if not os.path.exists(index_path): return HttpResponse("页面不存在", status=404) return HttpResponse(content, status=200)