From 749e11762f0358dc1a5fee856473764e78d5fd68 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Thu, 3 Aug 2023 17:29:02 -0400 Subject: [PATCH] fix GetFolderByPath to support root folder path --- Oqtane.Server/Controllers/FolderController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Oqtane.Server/Controllers/FolderController.cs b/Oqtane.Server/Controllers/FolderController.cs index 31121b60..24d252a7 100644 --- a/Oqtane.Server/Controllers/FolderController.cs +++ b/Oqtane.Server/Controllers/FolderController.cs @@ -88,6 +88,7 @@ namespace Oqtane.Controllers public Folder GetByPath(int siteId, string path) { var folderPath = WebUtility.UrlDecode(path).Replace("\\", "/"); + folderPath = (folderPath == "/") ? "" : folderPath; if (!folderPath.EndsWith("/") && folderPath != "") { folderPath += "/";