refactor use response.Location() to get the redirection location