public static <T> T getLogoutRedirectUrl(final HttpServletRequest request, final Class<T> clazz) {
        val value = request.getAttribute("logoutRedirectUrl");
        return Optional.ofNullable(value).map(clazz::cast).orElse(null);
    }
Gets logout redirect url.

@param <T>     the type parameter
@param request the request
@param clazz   the clazz
@return the logout redirect url
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java