From 1974cff0678e4595aa356ba707a6461215cd431c Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Fri, 6 Nov 2026 22:50:16 +0200 Subject: [PATCH] Fixes file system browser tree view path not expanding to selected path on UNIX. --- .../wwwroot/js/file-system-browser-dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lumina.Presentation.Web/wwwroot/js/file-system-browser-dialog.js b/src/Lumina.Presentation.Web/wwwroot/js/file-system-browser-dialog.js index e1640b12..b9929cb3 100644 --- a/src/Lumina.Presentation.Web/wwwroot/js/file-system-browser-dialog.js +++ b/src/Lumina.Presentation.Web/wwwroot/js/file-system-browser-dialog.js @@ -823,8 +823,8 @@ const expandButton = node.querySelector('.expand-button'); if (expandButton && !expandButton.classList.contains('expanded')) await toggleFileSysemTreeViewNodeExpandAsync({ target: expandButton, stopPropagation: () => { } }); - // split the remaining path into segments - const pathSegments = targetPath.slice(nodePath.length).split('\\').filter(Boolean); + // split the remaining path into segments, using the separator of the file system the browser is showing + const pathSegments = targetPath.slice(nodePath.length).split(pathSeparator).filter(Boolean); let currentNode = node; // iterate through each path segment for (let i = 0; i < pathSegments.length; i++) {