fix redirect issues in Trainer Search and List Trainers