diff --git a/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/util/EndpointUtil.java b/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/util/EndpointUtil.java index 3dcd4ad23a3..3f8cc8f0b0a 100644 --- a/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/util/EndpointUtil.java +++ b/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/util/EndpointUtil.java @@ -447,7 +447,8 @@ public static String getErrorRedirectURL(OAuthProblemException ex, OAuth2Paramet try { if (params != null) { if (isNotBlank(params.getRedirectURI())) { - if (OAuth2Util.isImplicitResponseType(params.getResponseType())) { + if (OAuth2Util.isImplicitResponseType(params.getResponseType()) || + OAuth2Util.isHybridResponseType(params.getResponseType())) { if (OAuthServerConfiguration.getInstance().isImplicitErrorFragment()) { redirectURL = OAuthASResponse.errorResponse(HttpServletResponse.SC_FOUND) .error(ex).location(params.getRedirectURI())