Skip to content
Snippets Groups Projects
Commit d87f6cb6 authored by Camille Blanchon's avatar Camille Blanchon
Browse files

Merge branch 'redmine-issues/18860' into 'develop'

REDMINE_ISSUE-18860 | Authentification GéoContrib via API OGS

See merge request !837
parents 22dd6c89 b2012346
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 the pathname as expected by OGS to redirect after login
return `${this.configuration.VUE_APP_LOGIN_URL}/?next=${encodeURIComponent(window.location.pathname)}`;
}
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