diff options
author | ArthurHoaro <arthur@hoa.ro> | 2021-01-19 14:26:04 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2021-01-19 14:26:04 +0100 |
commit | 3d6278e86fc5ab5756ce39ef3d1f299fb614ca2a (patch) | |
tree | a10b3d2de4a656c86546f0e5020aa4ff8657b14d /assets | |
parent | ffa39719a17982e6a6cac9bc3f758aa12fa69973 (diff) | |
download | Shaarli-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
Diffstat (limited to 'assets')
-rw-r--r-- | assets/common/js/shaare-batch.js | 2 |
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 | }); |