From 3d6278e86fc5ab5756ce39ef3d1f299fb614ca2a Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 19 Jan 2021 14:26:04 +0100 Subject: 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 --- assets/common/js/shaare-batch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets') 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}/`; }); }); }); -- cgit v1.2.3