From: ArthurHoaro Date: Tue, 19 Jan 2021 13:26:04 +0000 (+0100) Subject: Fix: bulk add redirection with ending slash X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=3d6278e86fc5ab5756ce39ef3d1f299fb614ca2a Fix: bulk add redirection with ending slash Otherwise cookie may not be store under the right subfolder, thus generating tokens in the wrong session file. Fixes #1690 --- diff --git a/assets/common/js/shaare-batch.js b/assets/common/js/shaare-batch.js index 557325ee..3324193f 100644 --- a/assets/common/js/shaare-batch.js +++ b/assets/common/js/shaare-batch.js @@ -100,7 +100,7 @@ const redirectIfEmptyBatch = (basePath, formElements, path) => { }); Promise.all(promises).then(() => { - window.location.href = basePath || '/'; + window.location.href = `${basePath}/`; }); }); });