diff --git a/src/ui/add_torrent.js b/src/ui/add_torrent.js index f8928e1..3bb055d 100644 --- a/src/ui/add_torrent.js +++ b/src/ui/add_torrent.js @@ -53,7 +53,7 @@ class AddTorrent extends Component { console.log(socket); const a = document.createElement('a'); a.href = socket.uri; - const url = (a.protocol === "ws:" ? "http://" : "https://") + a.host; + const url = (a.protocol === "ws:" ? "http://" : "https://") + a.host + a.pathname; try { const resp = await fetch(url, {