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
This commit is contained in:
ArthurHoaro 2021-01-19 14:26:04 +01:00
parent ffa39719a1
commit 3d6278e86f

View file

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