Use proper method for doing redirect.