Hook up handling of redirects