Skip to content
New issue

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

backUrl忽略了QueryString #36

Open
lizhengjun1982 opened this issue May 15, 2018 · 2 comments
Open

backUrl忽略了QueryString #36

lizhengjun1982 opened this issue May 15, 2018 · 2 comments

Comments

@lizhengjun1982
Copy link

lizhengjun1982 commented May 15, 2018

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); } }

@a466350665
Copy link
Owner

谢谢提醒,我晚点修复,下次有问题可以push上来

a466350665 pushed a commit that referenced this issue May 29, 2018
@a466350665
Copy link
Owner

当前问题已修复提交

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants