Skip to content

Commit

Permalink
Add get parameters to return_url in login (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Sep 3, 2021
1 parent d61b9b8 commit b3ba26b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/actions/main.js
Expand Up @@ -40,7 +40,7 @@ function createActions(store) {
});
},
redirectToLogin(state) {
const returnUrl = window.location.pathname;
const returnUrl = window.location.pathname + window.location.search;
route(`/login?return_url=${encodeURIComponent(returnUrl)}`);
},
async checkSession(state) {
Expand Down

0 comments on commit b3ba26b

Please sign in to comment.