Skip to content

Commit

Permalink
Fix: bulk add redirection with ending slash
Browse files Browse the repository at this point in the history
Otherwise cookie may not be store under the right subfolder, thus generating tokens in the wrong session file.

Fixes #1690
  • Loading branch information
ArthurHoaro committed Jan 19, 2021
1 parent ffa3971 commit 3d6278e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/common/js/shaare-batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const redirectIfEmptyBatch = (basePath, formElements, path) => {
});

Promise.all(promises).then(() => {
window.location.href = basePath || '/';
window.location.href = `${basePath}/`;
});
});
});
Expand Down

0 comments on commit 3d6278e

Please sign in to comment.