Entity suggestion found from URL is not filtered by bundle

Created on 10 January 2025, 7 months ago

Problem/motivation

The entity matches allows to filter by bundle.
This filter is not applied for suggestions found by URL.

Steps to reproduce

  1. Create an article (/node/1).
  2. Configure Linkit's entity matcher as such that only content type Page is allowed.
  3. In the autocomplete textfield, ender /node/1
  4. You'll see a suggestion for the article we just created, but we shouldn't because it's content type is not Page

Proposed resolution

Use the bundle filter as well when matching by URL.

πŸ› Bug report
Status

Active

Version

6.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium rp7

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @rp7
  • πŸ‡§πŸ‡ͺBelgium rp7
  • Pipeline finished with Failed
    7 months ago
    Total: 329s
    #391637
  • πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

    Good catch. This should definitely be addressed. It looks like the MR is triggering a failure in the tests, right now, with Failed asserting that '' contains "<a href hreflang data-entity-substitution data-entity-type data-entity-uuid title>". -- we'll need to look into that.

  • Status changed to Needs work 4 days ago
  • πŸ‡§πŸ‡·Brazil pinesso

    I’m also seeing this same issue on the 7.x version.

    Not sure if I’m missing something or doing something wrong, but I’ve configured it to accept all bundles except News. However, when I try adding a link using CKEditor, the News content type still shows up in the suggestions.


    Any help would be appreciated!

    Thank you!

Production build 0.71.5 2024