]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fix: bulk add redirection with ending slash 1694/head
authorArthurHoaro <arthur@hoa.ro>
Tue, 19 Jan 2021 13:26:04 +0000 (14:26 +0100)
committerArthurHoaro <arthur@hoa.ro>
Tue, 19 Jan 2021 13:26:04 +0000 (14:26 +0100)
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

index 557325ee373f9c85fc6287674f110096f379e7f1..3324193f9f00a1fc6cb32fb3112367b9d9342dac 100644 (file)
@@ -100,7 +100,7 @@ const redirectIfEmptyBatch = (basePath, formElements, path) => {
         });
 
         Promise.all(promises).then(() => {
-          window.location.href = basePath || '/';
+          window.location.href = `${basePath}/`;
         });
       });
     });