uploads: fix back button re-uploading the file when using bookmarklet.

Fix a bug where, if you used the bookmarklet to upload a file, and you
clicked on the back button on the upload tagging page, then you would be
taken back to the upload page, which would autosubmit the upload again.

Now if you click the back button on the upload tagging page, you'll be
taken back to the page where you used the bookmarklet, not the upload page.
This commit is contained in:
evazion
2022-02-03 17:22:52 -06:00
parent 7e146611d1
commit 8173c73aa3

View File

@@ -102,7 +102,7 @@ export default class FileUploadComponent {
}
if (upload.status === "completed") {
location.href = `/uploads/${upload.id}`;
window.location.replace(`/uploads/${upload.id}`);
} else {
this.$dropzone.removeClass("success");
this.$component.find("progress").addClass("hidden");