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)
commit 114e2ee1ab
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

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;
}
}