Remove weird double request on redirect, set correct location header