Skip to content

Commit 16ed466

Browse files
committed
fix: The dialogue interface cannot be opened
1 parent e28ea0d commit 16ed466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/maxkb/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def page_not_found(request, exception):
111111
return HttpResponseRedirect(a)
112112
index_path = os.path.join(PROJECT_DIR, 'apps', "static", 'chat', 'index.html')
113113
content = get_index_html(index_path)
114-
content = content.replace("prefix: '/chat'", f"prefix: {CONFIG.get_chat_path()}")
114+
content = content.replace("prefix: '/chat'", f"prefix: '{CONFIG.get_chat_path()}'")
115115
if not os.path.exists(index_path):
116116
return HttpResponse("页面不存在", status=404)
117117
return HttpResponse(content, status=200)

0 commit comments

Comments
 (0)