Can't get Linkit to work (no autocomplete)

Created on 17 January 2023, almost 2 years ago

Problem/Motivation

I have just upgraded my Drupal website to 9.5.1 and followed up by updating CKeditor to version 5. However, Linkit is not working in this editor i.e. it is not finding node titles in order to link to them. Are there any additional steps I need to follow to get this working? I can't find any info about this anywhere.

๐Ÿ’ฌ Support request
Status

Active

Version

6.0

Component

Code

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands mfgr

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Closed: duplicate almost 2 years ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom ChandeepKhosa
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia abhishek@kumar

    diff --git thomas-aquinas\web\modules\contrib\linkit\src\Plugin\Linkit\Matcher\EntityMatcher.php
    line no.326
    Remove:
    $url_results = $this->findEntityIdByUrl($string);
    $result = array_merge($query_result, $url_results);

    Add :
    $url_results = (array) $this->findEntityIdByUrl($string);
    $result = array_merge($query_result, $url_results);
    $options = [];
    To resolve the issue with entity matching, Iโ€™ve made a small adjustment to the code. The update ensures that URL query results are always treated as an array, preventing errors. Hereโ€™s the change:

Production build 0.71.5 2024