xuxueli / xxl-sso

A distributed single-sign-on framework.(分布式单点登录框架XXL-SSO)

Home Page:http://www.xuxueli.com/xxl-sso/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XxlSsoWebFilter logoutPageUrl 缺少当前页面地址,退出登录后重新登录无法跳转回来

han343626 opened this issue · comments

`
// logout path check
if (logoutPath!=null
&& logoutPath.trim().length()>0
&& logoutPath.equals(servletPath)) {

        // remove cookie
        SsoWebLoginHelper.removeSessionIdByCookie(req, res);

        // redirect logout
        String link = req.getRequestURL().toString().replace(logoutPath,"");
        String logoutPageUrl = ssoServer.concat(Conf.SSO_LOGOUT) + "?" + Conf.REDIRECT_URL + "=" + link;
        res.sendRedirect(logoutPageUrl);

        return;
    }

`