diff --git a/plugins/login-o365/LoginOAuth2.js b/plugins/login-o365/LoginOAuth2.js index 42e7ab4fc..4afc930bf 100644 --- a/plugins/login-o365/LoginOAuth2.js +++ b/plugins/login-o365/LoginOAuth2.js @@ -5,7 +5,7 @@ document.location = 'https://login.microsoftonline.com/'+tenant+'/oauth2/v2.0/authorize?' + (new URLSearchParams({ response_type: 'code', client_id: client_id, - redirect_uri: document.location.href + '?LoginO365', + redirect_uri: document.location.href.replace(/\/$/, '') + '/LoginO365', scope: [ // Associate personal info 'openid',