allow the redirect method to accept a URI style object to reduce boilerplate for common cases