Merge pull request #3103 from sbwalker/dev

fix GetFolderByPath to support root folder path
This commit is contained in:
Shaun Walker
2023-08-03 17:29:26 -04:00
committed by GitHub

View File

@ -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 += "/";