protected void saveRequestedUrl(final CallContext ctx, final List<Client> currentClients,
                                    final AjaxRequestResolver ajaxRequestResolver) {
        if (ajaxRequestResolver == null || !ajaxRequestResolver.isAjax(ctx)) {
            savedRequestHandler.save(ctx);
        }
    }
Save the requested url.

@param ctx the context
@param currentClients the current clients
@param ajaxRequestResolver the AJAX request resolver
pac4j-core/src/main/java/org/pac4j/core/engine/DefaultSecurityLogic.java