diff --git a/app/views/LoginSignupView.js b/app/views/LoginSignupView.js index 3e795bcc9..0f55361f8 100644 --- a/app/views/LoginSignupView.js +++ b/app/views/LoginSignupView.js @@ -231,7 +231,9 @@ class LoginSignupView extends React.Component { const redirectUri = `${ server }/_oauth/${ service }`; const state = this.getOAuthState(); const params = `?client_id=${ clientId }&redirect_uri=${ redirectUri }&response_type=code&state=${ state }&scope=${ scope }`; - const url = `${ serverURL }${ authorizePath }${ params }`; + const domain = `${ serverURL }`; + const absolutePath = `${ authorizePath }${ params }`; + const url = absolutePath.includes(domain) ? absolutePath : domain + absolutePath; this.openOAuth({ url }); }