Add support for redirects.