Fixed the return address for redirects