fix: Chat ui prefix (#3579)
This commit is contained in:
parent
92fba08185
commit
07b19fe90e
@ -111,7 +111,7 @@ def page_not_found(request, exception):
|
|||||||
if request.path.startswith(chat_ui_prefix):
|
if request.path.startswith(chat_ui_prefix):
|
||||||
in_ = [url for url in static_dict.get(chat_ui_prefix) if request.path.endswith(url)]
|
in_ = [url for url in static_dict.get(chat_ui_prefix) if request.path.endswith(url)]
|
||||||
if len(in_) > 0:
|
if len(in_) > 0:
|
||||||
a = admin_ui_prefix + in_[0]
|
a = chat_ui_prefix + in_[0]
|
||||||
return HttpResponseRedirect(_static(a))
|
return HttpResponseRedirect(_static(a))
|
||||||
index_path = os.path.join(PROJECT_DIR, 'apps', "static", 'chat', 'index.html')
|
index_path = os.path.join(PROJECT_DIR, 'apps', "static", 'chat', 'index.html')
|
||||||
content = get_index_html(index_path)
|
content = get_index_html(index_path)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user