Browse Source

Fix site listing show on big site visit

pull/2695/head
Tamas Kocsis 1 year ago
parent
commit
a1105562cd
  1. 3
      plugins/UiFileManager/UiFileManagerPlugin.py

3
plugins/UiFileManager/UiFileManagerPlugin.py

@ -78,6 +78,9 @@ class UiFileManagerPlugin(object):
if not site or not site.content_manager.contents.get("content.json"):
return super().error404(path)
if path_parts["inner_path"] in site.content_manager.contents.get("content.json").get("files", {}):
return super().error404(path)
self.sendHeader(200)
path_redirect = "/list" + re.sub("^/media/", "/", path)
self.log.debug("Index.html not found: %s, redirecting to: %s" % (path, path_redirect))

Loading…
Cancel
Save