Add support for redirects