Shows a problem with redirects on a button click when using 301 instead of 302