@@ -247,6 +247,7 @@ public class SecurityController {
logoutUrl = SSOHelper.getRedirectLogoutUrl(request, String.valueOf(request.getSession().getAttribute("SSOReferer")));
}
model.addAttribute("logoutUrl", logoutUrl);
+ model.addAttribute("baseUrl","/logout");
return model;
@@ -164,7 +164,7 @@ define([ 'angular', 'common/utils', 'big'], function(angular, utils, Big) {
logoutWithoutProxy : function(){
var logout = $http.get(rootPath+'/logout/crossBefore');
logout.success(function(data){
- window.location.href = data.logoutUrl;
+ window.location.href = data.logoutUrl + encodeURIComponent( rootPath+ data.baseUrl);
});
},
logout : function() {