Skip to content

Commit

Permalink
refactor: [#279] use the canonical infohash instead
Browse files Browse the repository at this point in the history
of the original for the redirection to the details page. After uplaoding a new torrent whose original infohash is not the same as the canonical one.
  • Loading branch information
josecelano committed Mar 7, 2024
1 parent e743c75 commit eb88095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function submitForm () {
text: "Torrent uploaded!"
}, 4000);
navigateTo(`/torrent/${new_torrent.info_hash}`, { replace: true });
navigateTo(`/torrent/${new_torrent.canonical_info_hash}`, { replace: true });
})
.catch((err) => {
uploading.value = false;
Expand Down

0 comments on commit eb88095

Please sign in to comment.