WebUI: Fix magnet url from the browser

This commit is contained in:
brvphoenix
2021-04-03 19:23:27 +08:00
committed by Chocobo1
parent 89a8e07217
commit a590e7139b

View File

@@ -1177,7 +1177,7 @@ function handleDownloadParam() {
if (location.hash.indexOf(downloadHash) !== 0)
return;
const url = location.hash.substring(downloadHash.length);
const url = decodeURIComponent(location.hash.substring(downloadHash.length));
// Remove the processed hash from the URL
history.replaceState('', document.title, (location.pathname + location.search));
showDownloadPage([url]);