]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - assets/common/js/shaare-batch.js
Fix: bulk add redirection with ending slash
[github/shaarli/Shaarli.git] / assets / common / js / shaare-batch.js
index 557325ee373f9c85fc6287674f110096f379e7f1..3324193f9f00a1fc6cb32fb3112367b9d9342dac 100644 (file)
@@ -100,7 +100,7 @@ const redirectIfEmptyBatch = (basePath, formElements, path) => {
         });
 
         Promise.all(promises).then(() => {
-          window.location.href = basePath || '/';
+          window.location.href = `${basePath}/`;
         });
       });
     });