Don't try to redirect when the code parameter is empty