X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=blobdiff_plain;f=assets%2Fcommon%2Fjs%2Fshaare-batch.js;fp=assets%2Fcommon%2Fjs%2Fshaare-batch.js;h=6fc16faf1e732d4326411a3458087d9da2d3d5b1;hp=4a1fdb2ed928ac59962c7bded70554ab3631bf4f;hb=83b4eb17958c0c03bea637db7e394f6d622aeb00;hpb=d496fd857d86bab793e358b91f06ea2ed0b597ae diff --git a/assets/common/js/shaare-batch.js b/assets/common/js/shaare-batch.js index 4a1fdb2e..6fc16faf 100644 --- a/assets/common/js/shaare-batch.js +++ b/assets/common/js/shaare-batch.js @@ -104,7 +104,7 @@ const redirectIfEmptyBatch = (basePath, formElements, path) => { }); Promise.all(promises).then(() => { - window.location.href = basePath || '/'; + window.location.href = `${basePath}/`; }); }); });