xuxueli / xxl-sso

A distributed single-sign-on framework.(分布式单点登录框架XXL-SSO)
http://www.xuxueli.com/xxl-sso/
GNU General Public License v3.0
1.94k stars 818 forks source link

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

Open han343626 opened 3 years ago

han343626 commented 3 years ago

` // 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;
    }

`