mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Chat prefix (#3463)
This commit is contained in:
parent
54cd93d927
commit
0b27836ccb
|
|
@ -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 + '/')
|
||||
|
|
|
|||
Loading…
Reference in New Issue