From 0b27836ccbabd1b066d23dfb5f78c7c04d1f920e Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Thu, 3 Jul 2025 14:34:41 +0800 Subject: [PATCH] fix: Chat prefix (#3463) --- 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 ec8ae989d..7963db8f4 100644 --- a/apps/maxkb/urls.py +++ b/apps/maxkb/urls.py @@ -131,7 +131,7 @@ def page_not_found(request, exception): return HttpResponse("页面不存在", status=404) content = get_index_html(index_path) content = content.replace("prefix: '/admin'", f"prefix: '{CONFIG.get_admin_path()}'").replace( - "chatPrefix: '/chat'", f"prefix: '{CONFIG.get_chat_path()}'") + "chatPrefix: '/chat'", f"chatPrefix: '{CONFIG.get_chat_path()}'") return HttpResponse(content, status=200) else: return HttpResponseRedirect(admin_ui_prefix + '/')