From 01ff8fab013f6e7c95381605bd7adfc7fa712371 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 15 May 2020 19:50:40 +0200 Subject: webbox: Fix path display --- plugins/webbox/html/webbox.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/webbox/html/webbox.js b/plugins/webbox/html/webbox.js index 839b93d..9b3a486 100644 --- a/plugins/webbox/html/webbox.js +++ b/plugins/webbox/html/webbox.js @@ -442,7 +442,15 @@ function setCurrentDir(newDir) { var menu = document.getElementsByClassName("menu")[0]; var firsttd = menu.getElementsByClassName("firsttd")[0]; - firsttd.innerHTML = getRootLink() + addDirectoryLinks(newDir); + + var result = getRootLink(); + + if (result == "" || newDir != "/") { + newDir = addDirectoryLinks(newDir); + result = result + newDir; + } + + firsttd.innerHTML = result; } function download(filename) { -- cgit v1.2.3