anchor.diff:     }
      String loginPage = "./login";
      String redirect = request.getParameter("redirect");
  +   // If there is no explicit redirect but there is an original request, then set the original request as redirect
  +   if(redirect == null && originalRequest != null) {
  +     redirect = originalRequest;
  +   }
      if(redirect != null) {
        redirect = URLEncoder.encode(redirect, "UTF-8").replace("+", "%20");
        loginPage += "?redirect=" + redirect;
  
positive.code:    <%
     String langParam = null;
     
     // If the language parameter is defined take it, othwerwise use the referrer in the message header
     String lang = request.getParameter("lang");
     
  
negative.code: <%@page import="org.springframework.security.web.savedrequest.DefaultSavedRequest"%>
  <%@page import="java.net.URLEncoder"%>
  <%@page import="java.util.regex.Pattern"%>
  <%@page import="java.util.regex.Matcher"%>
  