We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
com.smart.sso.client.SsoFilter类的redirectLogin方法应修改为: private void redirectLogin(HttpServletRequest request, HttpServletResponse response) throws IOException { if (isAjaxRequest(request)) { responseJson(response, SsoResultCode.SSO_TOKEN_ERROR, "未登录或已超时"); } else { SessionUtils.invalidate(request); StringBuffer backUrl = request.getRequestURL().append((request.getQueryString() != null) ? "?" + request.getQueryString() : ""); String ssoLoginUrl = new StringBuilder().append(isServer ? request.getContextPath() : ssoServerUrl) .append("/login?backUrl=").append(backUrl).toString(); response.sendRedirect(ssoLoginUrl); } }
private void redirectLogin(HttpServletRequest request, HttpServletResponse response) throws IOException { if (isAjaxRequest(request)) { responseJson(response, SsoResultCode.SSO_TOKEN_ERROR, "未登录或已超时"); } else { SessionUtils.invalidate(request); StringBuffer backUrl = request.getRequestURL().append((request.getQueryString() != null) ? "?" + request.getQueryString() : ""); String ssoLoginUrl = new StringBuilder().append(isServer ? request.getContextPath() : ssoServerUrl) .append("/login?backUrl=").append(backUrl).toString(); response.sendRedirect(ssoLoginUrl); } }
The text was updated successfully, but these errors were encountered:
谢谢提醒,我晚点修复,下次有问题可以push上来
Sorry, something went wrong.
修改backUrl忽略了QueryString #36
70d1433
当前问题已修复提交
No branches or pull requests
com.smart.sso.client.SsoFilter类的redirectLogin方法应修改为:
private void redirectLogin(HttpServletRequest request, HttpServletResponse response) throws IOException { if (isAjaxRequest(request)) { responseJson(response, SsoResultCode.SSO_TOKEN_ERROR, "未登录或已超时"); } else { SessionUtils.invalidate(request); StringBuffer backUrl = request.getRequestURL().append((request.getQueryString() != null) ? "?" + request.getQueryString() : ""); String ssoLoginUrl = new StringBuilder().append(isServer ? request.getContextPath() : ssoServerUrl) .append("/login?backUrl=").append(backUrl).toString(); response.sendRedirect(ssoLoginUrl); } }
The text was updated successfully, but these errors were encountered: