Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ public void onAuthenticationSuccess(HttpServletRequest request,
}

clearAuthenticationAttributes(request);

if (redirectURL == null || redirectURL.isEmpty()){
if (redirectURL == null){
System.out.println("No redirectUrl, throw");
throw new IOException("Unable to determine a redirect URL");
}
System.out.println("redirect URL IS: " + redirectURL);
if(redirectURL.isEmpty()){
redirectURL="/";
}
System.out.println("redirect URL IS: " + redirectURL);
RedirectStrategy rs = getRedirectStrategy();
if(rs instanceof WMHashAwareRedirectStrategy){
redirectURL = ((WMHashAwareRedirectStrategy)rs).getHashAwareRedirectUrl(request,redirectURL);
Expand All @@ -106,4 +108,3 @@ private boolean isAjaxRequest(HttpServletRequest request) {
return "XMLHttpRequest".equals(request.getHeader("X-Requested-With"));
}
}