From 20ec9e2043df27aba0e2e2e601623ec7fabfd5ab Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 2 Jan 2024 10:56:10 +0100 Subject: [PATCH] Fixed generating urls in BrowsableFolderServeWebPage. --- .../folder_serve_nodes/browsable_folder_serve_web_page.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_web_page.cpp b/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_web_page.cpp index 386213d97..5b0d0784e 100644 --- a/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_web_page.cpp +++ b/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_web_page.cpp @@ -132,9 +132,6 @@ void BrowsableFolderServeWebPage::evaluate_dir(const String &path, const bool to folders.sort(); files.sort(); - //folders.sort_inc(); - //files.sort_inc(); - render_dir_page(dir_uri, folders, files, top_level); } @@ -143,6 +140,10 @@ void BrowsableFolderServeWebPage::render_dir_page(const String &dir_uri, const V String uri = get_full_uri(false); + if (uri == "/") { + uri = ""; + } + b.div("file_list"); { if (!top_level) {