determine link type in the admin class