title: remove project name prefix from spring redirect url
body: <p>I use nginx reverse proxy to connect tomcat and nginx config is:</p>
  
  <pre><code>server {
    listen      80;
    listen [::]:80;
    server_name magnet.s-m.local;
  
    location / {
        proxy_pass http://tomcat:8080/magnet/;
        proxy_cookie_path /magnet /;
        proxy_redirect     off;
        proxy_set_header   Host $host;
        proxy_set_header   X-Real-IP $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Host $server_name;
    }
  }
  </code></pre>
  
  <p>every this is ok but when I want to redirect user spring add project name to redirect path.</p>
  
  <pre><code>@RequestMapping(value = "/login",method = RequestMethod.POST)
  public String loginCheck(HttpSession session, @RequestParam("username") String user, @RequestParam("password") String password){
      session.setAttribute("username",user);
      return "redirect:/home";
  }
  </code></pre>
  
  <p>this code redirect to <code>http://magnet.s-m.local/magnet/home</code> but I want to redirect <code>http://magnet.s-m.local/home</code></p>
  
  <p>if I use <code>RedirectView</code> it's work nice but using <code>redirect:/home</code> is better because I can decide to redirect or load jsp file if login failed.</p>