]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - assets/common/js/shaare-batch.js
Merge pull request #1694 from ArthurHoaro/fix/bulk-add-redirect-token
[github/shaarli/Shaarli.git] / 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}/`;
         });
       });
     });