Skip to content

Commit 0b27836

Browse files
authored
fix: Chat prefix (#3463)
1 parent 54cd93d commit 0b27836

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
@@ -131,7 +131,7 @@ def page_not_found(request, exception):
131131
return HttpResponse("页面不存在", status=404)
132132
content = get_index_html(index_path)
133133
content = content.replace("prefix: '/admin'", f"prefix: '{CONFIG.get_admin_path()}'").replace(
134-
"chatPrefix: '/chat'", f"prefix: '{CONFIG.get_chat_path()}'")
134+
"chatPrefix: '/chat'", f"chatPrefix: '{CONFIG.get_chat_path()}'")
135135
return HttpResponse(content, status=200)
136136
else:
137137
return HttpResponseRedirect(admin_ui_prefix + '/')

0 commit comments

Comments
 (0)