Skip to content

Commit eb88095

Browse files
committed
refactor: [#279] use the canonical infohash instead
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.
1 parent e743c75 commit eb88095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/upload.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function submitForm () {
166166
text: "Torrent uploaded!"
167167
}, 4000);
168168
169-
navigateTo(`/torrent/${new_torrent.info_hash}`, { replace: true });
169+
navigateTo(`/torrent/${new_torrent.canonical_info_hash}`, { replace: true });
170170
})
171171
.catch((err) => {
172172
uploading.value = false;

0 commit comments

Comments
 (0)