Hopefully handle redirects correctly