Browse Source

Merge pull request #14703 from brvphoenix/fix-url

WebUI: Fix magnet url from the browser
adaptive-webui-19844
Chocobo1 4 years ago committed by GitHub
parent
commit
c4a3d70500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/webui/www/private/scripts/client.js

2
src/webui/www/private/scripts/client.js

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

Loading…
Cancel
Save