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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user