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

fix(sso-login): retrait du slash à la fin de l'url de SSO pour redirect

Pour permettre la redirection sur OGS vers geocontrib on a ajouté le param 'next' à l'url de login par SSO, mais cela ne passe pas pour le CAS d'IGO d'OPenIG. Le retirer résoud le problème et fonctionne toujours sur OGS
parent 721eed53
No related branches found
No related tags found
1 merge request!876REDMINE_ISSUE-26721 | Impossible de se connecter par CAS - erreur 404
......@@ -282,7 +282,7 @@ export default {
SSO_LOGIN_URL() {
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 `${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