We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c6a1995 + 439e521 commit 00d5d7aCopy full SHA for 00d5d7a
angular-oauth2-oidc/src/oauth-service.ts
@@ -1414,10 +1414,12 @@ export class OAuthService
1414
logoutUrl = this.logoutUrl.replace(/\{\{id_token\}\}/, id_token);
1415
}
1416
else {
1417
- logoutUrl = this.logoutUrl + '?id_token_hint='
1418
- + encodeURIComponent(id_token)
1419
- + '&post_logout_redirect_uri='
1420
- + encodeURIComponent(this.postLogoutRedirectUri || this.redirectUri);
+ logoutUrl = this.logoutUrl +
+ (this.logoutUrl.indexOf('?') > -1 ? '&' : '?')
+ + 'id_token_hint='
+ + encodeURIComponent(id_token)
1421
+ + '&post_logout_redirect_uri='
1422
+ + encodeURIComponent(this.postLogoutRedirectUri || this.redirectUri);
1423
1424
location.href = logoutUrl;
1425
};
0 commit comments