From 07b19fe90ee9932b40c251fb3d93f36f3c913142 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 14 Jul 2025 11:07:53 +0800 Subject: [PATCH] fix: Chat ui prefix (#3579) --- 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 8b7824eea..b3fe01231 100644 --- a/apps/maxkb/urls.py +++ b/apps/maxkb/urls.py @@ -111,7 +111,7 @@ def page_not_found(request, exception): if request.path.startswith(chat_ui_prefix): in_ = [url for url in static_dict.get(chat_ui_prefix) if request.path.endswith(url)] if len(in_) > 0: - a = admin_ui_prefix + in_[0] + a = chat_ui_prefix + in_[0] return HttpResponseRedirect(_static(a)) index_path = os.path.join(PROJECT_DIR, 'apps', "static", 'chat', 'index.html') content = get_index_html(index_path)