Skip to content
Snippets Groups Projects
Commit ee711603 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix: adapt next parameter with an accepted route by OGS login

parent 22dd6c89
No related branches found
No related tags found
1 merge request!837REDMINE_ISSUE-18860 | Authentification GéoContrib via API OGS
......@@ -284,8 +284,9 @@ export default {
return this.configuration.VUE_APP_DISABLE_LOGIN_BUTTON;
},
SSO_LOGIN_URL() {
if (this.configuration.VUE_APP_LOGIN_URL) {
return `${this.configuration.VUE_APP_LOGIN_URL}/?next=${encodeURIComponent(window.location.href)}`;
if (this.configuration.VUE_APP_LOGIN_URL) {
// add a next parameter with an accepted route by OGS to redirect after login
return `${this.configuration.VUE_APP_LOGIN_URL}/?next=%2Fgeocontrib%2F`;
}
return null;
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment