@Override
    public KeycloakUriBuilder getLogoutUrl() {
        delegate.getLogoutUrl();
        // Thanks to @kernalex-exx https://github.com/keycloak/keycloak/discussions/10657#discussioncomment-2437915
        return KeycloakUriBuilder.fromUri(KeycloakUriBuilder.fromUri(delegate.getAuthServerBaseUrl()).clone()
                                                  .path(ServiceUrlConstants.TOKEN_SERVICE_LOGOUT_PATH).build(getRealm()).toString());
    }
@author Marc Savy {@literal <marc@blackparrotlabs.io>}
manager/ui/war/src/main/java/io/apiman/manager/ui/server/kc/DeploymentWithLogoutViaBackend.java