Problem/Motivation

With Drupal 9.4.4 and Alinks 2.0.0 plus patch from https://www.drupal.org/files/issues/3171893:

I have several terms in my vocabulary that are future projects to be completed, and therefore are set to unpublished. However, Alinks still creates links to these terms, which then end up on the home page instead.

This is different than issue 2901463, as I am not concerned about whether the term has associated content or not, only the published / unpublished status of the term.

Steps to reproduce

1. Install Drupal, Alinks, etc
2. Create vocabulary and several unpublished terms
3. Set alinks context to node, select vocabulary with unpublished terms
4. Navigate to node with keywords that match unpublished terms
5. Note links are created to unpublished term pages

Proposed resolution

Modify Alinks query that pulls list of terms for the vocabulary to filter out unpublished terms

Remaining tasks

Unknown

User interface changes

None, unless this new behavior is to become an adminstrator controllable option

API changes

Unknown

Data model changes

Unknown

Comments

higherform created an issue.