Add initial support for redirects