Fix URL format for class_details ajax endpoint