Add support for generating redirects