]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #1694 from ArthurHoaro/fix/bulk-add-redirect-token
authorArthurHoaro <arthur@hoa.ro>
Tue, 26 Jan 2021 15:25:09 +0000 (16:25 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Jan 2021 15:25:09 +0000 (16:25 +0100)
Fix: bulk add redirection with ending slash

assets/common/js/shaare-batch.js

index 4a1fdb2ed928ac59962c7bded70554ab3631bf4f..6fc16faf1e732d4326411a3458087d9da2d3d5b1 100644 (file)
@@ -104,7 +104,7 @@ const redirectIfEmptyBatch = (basePath, formElements, path) => {
         });
 
         Promise.all(promises).then(() => {
-          window.location.href = basePath || '/';
+          window.location.href = `${basePath}/`;
         });
       });
     });