WebUI: Fix category save path

PR #19008.
This commit is contained in:
Raymond Ha
2023-05-26 01:52:37 -07:00
committed by Vladimir Golovnev (glassez)
parent b5af0f71b9
commit 114e2ee1ab

View File

@@ -124,7 +124,7 @@ window.qBittorrent.Download = (function() {
const category = categories[categoryName];
let savePath = defaultSavePath;
if (category !== undefined)
savePath = (category['savePath'] !== "") ? category['savePath'] : (defaultSavePath + categoryName);
savePath = (category['savePath'] !== "") ? category['savePath'] : `${defaultSavePath}/${categoryName}`;
$('savepath').value = savePath;
}
}