aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-01-19 14:26:04 +0100
committerArthurHoaro <arthur@hoa.ro>2021-01-19 14:26:04 +0100
commit3d6278e86fc5ab5756ce39ef3d1f299fb614ca2a (patch)
treea10b3d2de4a656c86546f0e5020aa4ff8657b14d
parentffa39719a17982e6a6cac9bc3f758aa12fa69973 (diff)
downloadShaarli-3d6278e86fc5ab5756ce39ef3d1f299fb614ca2a.tar.gz
Shaarli-3d6278e86fc5ab5756ce39ef3d1f299fb614ca2a.tar.zst
Shaarli-3d6278e86fc5ab5756ce39ef3d1f299fb614ca2a.zip
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
-rw-r--r--assets/common/js/shaare-batch.js2
1 files changed, 1 insertions, 1 deletions
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) => {
100 }); 100 });
101 101
102 Promise.all(promises).then(() => { 102 Promise.all(promises).then(() => {
103 window.location.href = basePath || '/'; 103 window.location.href = `${basePath}/`;
104 }); 104 });
105 }); 105 });
106 }); 106 });